Skip to content
MixTool

Base64 decoder

Paste Base64 and get the original text back — or the original image, PDF or file, ready to download.

  • Runs entirely in your browser
  • Free · no sign-up
  • Works on phone and desktop
Loading tool…

From Base64 back to the original

Paste a Base64 string and the decoder turns it back into its original bytes. If those bytes are text, you see it as UTF-8 text. If they're a file, the decoder recognizes common formats from their signature — PNG, JPEG, GIF, WebP, PDF, ZIP and more — shows a preview for images and lets you download the file with the right extension.

It accepts standard Base64, URL-safe base64url (used in JWTs), strings with missing = padding, line breaks from emails, and complete data URLs such as data:image/png;base64,….

How to decode Base64

  1. 1

    Paste the Base64 string

    Or a full data URL.

  2. 2

    See the decoded result

    Text appears instantly; files are detected.

  3. 3

    Copy or download

    Save text, images or other files.

Key features

  • File type detection

    Recognizes images, PDFs and archives.

  • Image preview

    See decoded images right away.

  • Forgiving input

    Handles base64url, missing padding and line breaks.

  • Private

    Decoding happens in your browser.

Common uses

  • Inspecting API data: Decode fields that arrive Base64-encoded.
  • Recovering attachments: Turn an encoded email attachment back into a file.
  • Debugging tokens: Read the parts of a token or cookie.

Tips and good to know

  • For JSON Web Tokens, the JWT Decoder splits and decodes all three parts at once.
  • Getting gibberish? The data may be encrypted or compressed rather than plain Base64-encoded text.

Frequently asked questions

Why does my decoded text look like random symbols?

The original data was probably binary (an image, a compressed file or encrypted data), not text. Use the download option to save it as a file.

What's the “Invalid character” error?

Base64 only uses A–Z, a–z, 0–9, +, / and = (or - and _ for URL-safe). Spaces and line breaks are removed automatically, but other characters mean the string was copied incorrectly.

Is anything uploaded?

No. The string is decoded locally in your browser.