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
| Code | Meaning |
|---|---|
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. |
Invalid | Characters outside the alphabet cannot be decoded and are reported as errors. |
UTF-8 | Decoded 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=':
- 1Paste the Base64 string.
- 2The decoded text appears live.
- 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
Base64 Encoder
Encode any text, including Unicode, to Base64.
URL Decoder
Decode percent-encoded URLs back to readable text.
Hash Generator
Generate MD5, SHA-1 and SHA-256 hashes of any text.
JSON Formatter
Format, minify and validate JSON with one click.
URL Encoder
Encode text for safe use inside URLs and query strings.
Regex Tester
Test regular expressions against text with live matches.