Skip to content

Base64 Decoder

Turn a Base64 string back into the original text. Decodes UTF-8 correctly, so Arabic text and emoji come back intact. A quick way to inspect tokens, embedded data or encoded config values.

What this means

Decoding reverses encoding: 4 Base64 characters map back to 3 bytes, which are then interpreted as UTF-8 text.

How we calculate it

Formula

Strip padding, map each 6-bit character to its byte value, reassemble bytes, decode as UTF-8.

Worked example

Decode 'SGVsbG8gV29ybGQ=':

  1. 1Paste the Base64 string.
  2. 2The decoded text appears live.
  3. 3Copy the result.

Important assumptions

  • The input is a valid Base64 string; whitespace is ignored.

Frequently asked questions

Why does decoding fail?

The string may be truncated, contain spaces in the middle, or use URL-safe characters. Whitespace is stripped automatically.

Can Base64 represent binary files?

Yes. Decoded bytes may not be readable text — for files, save the raw bytes instead.

Related tools