Base64 Decoder

Paste a Base64 string to decode it as UTF-8 text, or download the result when it is a binary file such as an image or PDF. The decoder accepts standard and URL-safe alphabets, ignores line breaks and points to the exact position of an invalid character or bad padding. Common file types are recognised from their signature.

How to use the Base64 Decoder

  1. Paste Base64, Base64URL or a full data: URL.
  2. Read the decoded text, or see the binary file notice.
  3. Fix any reported invalid character at the position shown.
  4. Use Download file to save decoded binary data.

Features

Benefits

Frequently asked questions

Why do I see a "binary data" message instead of text?

The decoded bytes are not valid UTF-8 text or contain control characters, which usually means the data is a file. Use Download file to save it.

What does "4n+1 characters" mean?

Base64 encodes 3 bytes into 4 characters, so a valid string can never be one character longer than a multiple of four. The data was probably cut off when copying.

Can it decode JWT parts?

Yes, JWT segments are Base64URL. For a full breakdown with expiry times use the JWT Decoder tool.

Related tools