Skip to content

Base64 decode

EncodeExperimentalLimited support. Verify anything critical.

Base64 decode reverses a standard or URL-safe 64-character alphabet sequence back to UTF-8 text. Whitespace is ignored; illegal characters fail immediately. Use it to unpack data that was Base64-packed for transport through headers, APIs, or MIME payloads, and download raw bytes when the payload is binary rather than text.

Skip to the tool

This tool processes text on your device. The text is not uploaded.

  • Decodes UTF-8 text and can download the decoded bytes as a local binary file.
  • Fails on input strings that do not map to valid UTF-8 sequences.

Steps

Paste the Base64 string

Standard or URL-safe alphabets are fine; spaces and line breaks are stripped before decoding.

Run locally

Four-character blocks map back to bytes. Invalid characters clear the previous output and show an error.

Copy text or download bytes

Use Copy for UTF-8 text, or Download decoded bytes when the payload is binary.

How to use Base64 decode

When text looks wrong

If the output is mojibake, the original payload was probably binary. Prefer Download decoded bytes and inspect with a hex viewer rather than treating the textarea as UTF-8.

Padding and variants

Trailing = characters are padding. URL-safe strings that use - and _ are normalized before atob.

How it works

  1. Enter what you haveType or pick your text. Nothing is submitted anywhere.
  2. It runs in this tabThe calculation happens on your device, using your browser's own data.
  3. Take the resultRead the text, then copy or download.

Reimplemented locally. Not derived from IT-Tools source.

Basis
independent
Licence
MIT
Last reviewed

Frequently asked questions

Why do some Base64 strings decode to meaningless gibberish?

If the decoded bytes do not form valid UTF-8 text (e.g. they represent an image file, a compiled binary, or compressed gzip data), rendering them as a text string will result in unreadable replacement characters.

Does this decoder support URL-safe Base64?

Yes. The decoder automatically handles URL-safe variants by translating '-' to '+' and '_' to '/' before decoding.

Is whitespace allowed in the input?

Yes. All whitespace characters (spaces, tabs, newlines) are safely stripped from the input string prior to decoding.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close