Base64 Decode to Text

Encode text as Base64 or decode Base64 back to text (UTF-8).

Input

Output

Words 1Characters 84Without spaces 84Sentences 1Lines 1Paragraphs 1Reading time < 1 min

About Base64 Decode

Paste a Base64 string to see the text inside it, whether it came from an API response, an email source, a config file or the payload part of a JWT. Line breaks in the input are ignored, so wrapped Base64 from emails works as is.

Both alphabets are accepted: the URL-safe characters - and _ are handled, and missing = padding is added for you. If the string contains characters Base64 cannot have, or the bytes are not valid text, you get a clear message instead of garbage. Nothing you paste is uploaded.

How to use it

  1. Paste the Base64 string into the Input box.
  2. Make sure Mode is set to Decode.
  3. Read the decoded text on the right, or the error that explains what is wrong.
  4. Copy the result, download it as .txt, or press Use as input to keep working on it.

Frequently asked questions

Can I decode a JWT payload?

Yes. Paste the middle part of the token (between the two dots); it uses URL-safe Base64 without padding, which this decoder accepts. The tool does not check the signature.

Why do I get “not valid UTF-8 text”?

The Base64 decodes to binary data, such as an image or a ZIP file, rather than text. This tool only shows text output.

Do I need to remove the data:...;base64, prefix?

Yes. For a data URI, delete everything up to and including the comma and paste only the Base64 part.

Related tools