Base64 Decoder

Turn a Base64 string back into readable text.

Encoding & Conversion Free, no sign-up Runs in your browser

Base64 Decoder tool

Line breaks, spaces and missing padding are handled automatically. Both the standard and URL-safe alphabets are accepted.

About the Base64 Decoder

Base64 Decoder reverses Base64 encoding and gives you back the original text. Paste the encoded string and the decoded version appears below. Decoding is UTF-8 aware, so strings containing accented characters, non-Latin scripts and emoji come back exactly as they went in rather than as a row of question marks.

Real-world Base64 is often untidy. Strings copied from logs arrive with line breaks in them, strings from URLs use the URL-safe alphabet with hyphens and underscores, and strings from some APIs have had their padding stripped. The decoder handles all three automatically: it removes whitespace, accepts both alphabets and restores missing padding before decoding.

When a string genuinely cannot be decoded, you get a plain-language explanation rather than a raw browser exception. The most common cause is that the text was never Base64 to begin with, or that a character was lost when it was copied.

How to use the Base64 Decoder

  1. Paste the Base64 stringLine breaks and stray spaces are fine; they are ignored.
  2. Read the decoded textThe result appears immediately underneath.
  3. Check the message if it failsAn invalid string produces an explanation of what went wrong.
  4. Copy the plain textTake the decoded result with the copy button.

Features

  • Correct UTF-8 decoding for international text and emoji
  • Accepts both standard and URL-safe alphabets
  • Ignores line breaks and spaces inside the string
  • Restores missing padding automatically
  • Plain-language errors instead of raw exceptions
  • Copy the decoded text in one click

Who uses this tool

The base64 decoder is used by writers, developers, students, marketers and anyone else who needs the job done once without installing software. Common cases include:

  • Reading an encoded payload from a log file
  • Inspecting the contents of a token or query parameter
  • Checking what a data URI actually contains
  • Debugging an API that returns Base64 fields
  • Recovering text that was encoded for transport

Frequently asked questions

Why does my string fail to decode?

Either it is not Base64, or characters were lost when it was copied. Base64 contains only letters, digits, plus, slash and equals, or hyphen and underscore in URL-safe form. Any other character means the string has been altered or truncated.

The result looks like unreadable symbols. What happened?

The encoded data was probably binary, such as an image or a compressed archive, rather than text. Binary decoded as text produces nonsense. This tool is built for text payloads.

Do I need to add the padding back myself?

No. If equals signs are missing, the decoder works out how many are needed and adds them before decoding.

Can it decode JWT tokens?

You can decode the individual parts. A JWT is three URL-safe Base64 sections separated by full stops; paste one section at a time to read the header or payload. The signature is binary and will not render as readable text.

Is the decoded text stored anywhere?

No. Decoding happens in your browser and the result is discarded when you close the tab. Nothing is logged or uploaded.

Does decoding verify that the data is genuine?

No. Base64 carries no signature or checksum. Decoding tells you what the bytes say, not whether they came from a trustworthy source.

If the base64 decoder is not quite what you need, these other free tools solve closely related problems.

Base64 Encoder

Encode any text, including emoji and accents, to a Base64 string.

Encoding & Conversion Use tool

URL Decoder

Decode %20 and other percent escapes back into normal characters.

Encoding & Conversion Use tool

JSON Formatter

Pretty-print and validate JSON, with the exact line and column of any error.

Developer Tools Use tool

HTML Encoder & Decoder

Escape angle brackets and quotes to HTML entities, or decode them back.

Encoding & Conversion Use tool

URL Encoder

Escape spaces, symbols and non-ASCII characters for use in URLs.

Encoding & Conversion Use tool