Omnikit
DevFilesMoneyAll tools
Ctrl K
Dev toolsFile toolsMoney calculatorsAll tools
HomeDeveloper toolsBase64 Encode & DecodeBase64 Decode

Base64 Decode

dev

Turn Base64 back into text or a downloadable file

Runs in your browser. Nothing you type is sent anywhere. Updated on 25 Oct 2026.

Decoding reads a Base64 string back into the bytes it came from, whether those are a sentence, the payload of a JWT, a certificate or a whole file. Paste the string to get the text, or use Download when the bytes are not text; an image is shown as a preview first.

Next:
  • URL Encoder / Decoder Percent-encode or decode text and URLs, and see every part of a link
  • Hash Generator MD5, SHA-1, SHA-256, SHA-384 and SHA-512 of text or files, with checksum compare

How to decode a Base64 string

1

The page opens in Decode mode.

2

Paste the Base64 string or a data: URI into the Base64 pane.

3

Read the decoded text on the right; an image is shown as a preview instead.

4

Click Copy for text, or the download icon to save the decoded bytes as a file.

How Base64 Decode works

Padding with equals signs is optional, and the URL-safe alphabet that uses minus and underscore is recognised automatically.

This Base64 encoder turns text or any file into Base64 and decodes Base64 back into readable text, an image preview or a downloadable file. Output appears as you type, with a URL-safe mode for tokens and query strings and a one-click data URI when you encode an image.

People use it to inline a small logo into CSS or an HTML email, to read the payload of a token or a webhook body that arrived Base64-encoded, and to check what a client actually sent when an API rejects a request. It is also handy for pasting a certificate or a binary blob into a config file that only accepts text.

Encoding and decoding run in your browser with JavaScript. Files are read locally with the File API and never uploaded, so it is fine to use with private documents or keys. Text is treated as UTF-8, which means emoji and Hindi, Tamil or Arabic script round-trip correctly. The decoder accepts either alphabet, tolerates missing padding and line breaks, and spots PNG, JPEG, GIF and WebP output so you can preview it. A file you pick can be up to 20 MB, because the whole Base64 string is built in memory and a bigger one would freeze the tab; pasted text has no limit of its own.

The rest of the article, and all 6 questions about Base64 Encode & Decode, are on the Base64 Encode & Decode page.

Frequently asked questions

Is this Base64 encoder free and unlimited?

Yes. There is no signup, no watermark and no cap on how often you use it. Pasted text has no length limit beyond what your browser can hold. A file you pick is capped at 20 MB, because the whole Base64 string is built in memory and a larger file would freeze the tab rather than encode.

What is URL-safe Base64?

Standard Base64 uses + and /, which have special meaning in URLs, and pads with =. URL-safe Base64 (RFC 4648 section 5) replaces them with - and _ and usually drops the padding. It is used in JWTs, OAuth tokens and query strings. Turn on the URL-safe switch to produce it; the decoder detects it automatically.

How do I convert an image to Base64 for CSS or HTML?

Choose Encode, switch the input to File, pick the image and turn on Data URI. The output starts with data:image/png;base64, and can be pasted straight into a CSS url() or an img src attribute. Keep inlined images small; anything over a few kilobytes is usually better served as a normal file.

Why does decoding show a download instead of text?

The decoded bytes are not valid UTF-8 text, so they are probably a file such as a PDF, a ZIP or an image. Images are previewed; other binaries show a hex preview and a Download button that saves the bytes with a sensible name.

Still stuck? Ask about Base64 Encode & Decode and anybody who knows can answer. No account needed.

More ways to use Base64 Encode & Decode

  • Base64 Encode & DecodeText and files to Base64 and back, with URL-safe mode and image preview
  • Base64 EncodeTurn text or a file into Base64
  • Image to Base64Get a data URI for any image, ready for CSS or HTML

Same job, other tools: Binary to Text Converter – Decode binary code such as 01001000 01101001 into readable text · Text to ASCII Code Converter – See the decimal ASCII code of every character, A = 65, and turn codes back into text.

On the related tools: JSON to C# for Newtonsoft.Json – Paste JSON and get C# classes with [JsonProperty] attributes for Json.NET.

Related tools

All developer tools
curl ConverterTurn a curl command into fetch, Node, Python, PowerShell or HTTPie codeText to Binary ConverterTurn text into binary, hex, decimal or octal bytes, and decode them back, in UTF-8JSON to C# Class ConverterTurn a JSON sample into C# classes or records for System.Text.Json or Newtonsoft.JsonJSON to ZodPaste a JSON sample and get a Zod schema with its z.infer type, ready to copyUnix Timestamp ConverterUnix timestamps to dates and dates to timestamps, in any time zoneJSON to TypeScriptGenerate TypeScript interfaces or types from a JSON sampleCSV to JSONConvert CSV to JSON and JSON to CSV, with a table previewYAML to JSONConvert YAML to JSON and JSON to YAML, with anchors resolved

In the collections JSON Tools · Developer Converters.

Was this tool helpful?
Omnikit

Small jobs, done in your browser. Free, fast and private. Files are never uploaded.

Files

  • Compress Image
  • Image to PDF
  • Merge PDF
  • Compress PDF
  • PDF to Word
  • Word to PDF

Dev

  • JSON Formatter & Validator
  • Base64 Encode & Decode
  • JWT Decoder, Verifier & Encoder
  • Password Generator
  • UUID Generator
  • Unix Timestamp Converter

Money

  • SIP Calculator
  • EMI Calculator
  • GST Calculator
  • FD Calculator
  • PPF Calculator
  • Lumpsum Calculator
GuidesQuestionsAboutHow we checkLaw library (beta)PrivacyTermsDisclosureContactMore: Exam practice (UGC NET Paper 1)Runs in your browser. Nothing is uploaded. © 2026 Omnikit (theomnikit.com)