Base64 Decode

Decode a Base64-encoded string back to plain text. Handles UTF-8, URL-safe variants, and strings with or without padding.

Base64 input
Decoded text

Need to scan documents to real PDFs?

Offline PDF Scanner turns your phone camera into a real PDF scanner — with searchable text, not just photos. Works completely offline.

What is Base64 decoding?

Base64 decoding is the inverse operation of Base64 encoding: it converts a Base64 ASCII string back into the original sequence of bytes. Once you have the bytes, you can interpret them as text (using UTF-8 or another encoding) or as binary data like an image or file.

How to use this Base64 decoder

  1. Paste your Base64 string into the left panel, or click Upload to load a file.
  2. Leave Auto-detect on to handle both standard and URL-safe variants automatically.
  3. Click Decode →. The original text appears instantly on the right.
  4. Click Copy or Download to export the decoded text.

When to decode Base64

  • Reading JWTs — the header and payload of a JSON Web Token are URL-safe Base64. Decode them to inspect claims.
  • Debugging HTTPAuthorization: Basic headers contain Base64 user:pass.
  • Reverse-engineering data URIsdata:image/png;base64,… can be decoded back to the original bytes.
  • Inspecting MIME emails — message bodies and attachments are often Base64-encoded.
  • Decoding API responses — many APIs return binary blobs as Base64 inside JSON.

Standard vs. URL-safe Base64

Two common variants exist:

  • Standard — uses + and / with = padding. Defined in RFC 4648 §4.
  • URL-safe — uses - and _ with padding often omitted. Defined in RFC 4648 §5, used in JWT, OAuth, and URL tokens.

This tool auto-detects which variant you pasted and handles both transparently.

Privacy

All decoding happens in your browser. No input ever leaves your device — not even for analytics. The tool works fully offline once the page is loaded.

Frequently Asked Questions