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 each field means

Every input below changes the result in a specific way. This is what each one expects, what it starts at, and the range it accepts.

Base64 string

Text that you supply. The calculator works on exactly what you type.

How to read your result

The calculator reports the figures below. The headline figure answers the question in the title; the rows underneath break it down so you can see what drives it.

Decoded text
This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
Decoded length
This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
Encoded length
This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
First line
This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
Lines
This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
Characters
This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.

Quick reference

CodeMeaning
A-Z a-z 0-9 + /The 64-character Base64 alphabet.
=Padding that may appear at the end of valid input.
- _URL-safe Base64 substitutes these two characters for plus and slash.
InvalidCharacters outside the alphabet cannot be decoded and are reported as errors.
UTF-8Decoded bytes are read as UTF-8, so the wrong encoding choice shows garbled text.

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