Ads Leaderboard

Base64 Decoder

Paste a Base64 string and get its original text back. Malformed input is caught with a clear explanation instead of a cryptic browser error.

Tip: Ctrl+Enter decodes the string.

Ads In-Content

How to use Base64 Decoder

  1. Paste the Base64 string into the input box.
  2. Click Decode (or press Ctrl+Enter).
  3. Read the decoded text — or the error explaining exactly what was wrong.
  4. Copy or download the result.

Features

  • Strict validation with clear, human-readable errors
  • Accepts standard and URL-safe alphabets (- and _) plus whitespace
  • Missing padding is repaired automatically
  • Non-UTF-8 payloads fall back to a readable Latin-1 view
  • Copy to clipboard or download as .txt
  • Decoding runs entirely on your device

Important information

Base64 decoding reverses an encoding — it does not decrypt anything. If the decoded bytes are not valid UTF-8 text (for example binary data), the tool shows them as Latin-1 and tells you, instead of producing mojibake. Decoding happens locally with the browser's built-in atob; nothing is uploaded.

Frequently asked questions

Why does my decode fail with 'Invalid Base64'?

The string likely contains characters outside the Base64 alphabet (such as a stray comma or URL fragment), or its length can never be valid. The error message tells you which case applies.

What is URL-safe Base64?

It uses '-' and '_' instead of '+' and '/' so the string can sit inside a URL without escaping. JWTs use this variant — this tool accepts both automatically.

Why does it say the output is not UTF-8?

The original data was probably binary rather than text. The tool then shows the raw bytes as Latin-1 so you can still inspect them.