Tool / Blog / How to use Open the decoder
Guide · 6 min read

How to decode and encode Base64 online, step by step

Paste once and the tool does the rest. This guide shows what each part of the result means, and what to do when the output isn't plain text.

B6DecodePad team·Updated Nov 26, 2026Everything shown runs offline
▶ Watch first · 10 seconds

Paste, explain, copy

A token is pasted, the result appears at once, Explain gives a one-line summary, and Copy puts the result on the clipboard. That is the whole workflow.

This clip is drawn and recorded by your browser while you read. It is a real WebM file that never touches a server.

Recording…

This guide is about using the decoder. For the full list of what it can detect, see Everything it does on the tool page.

1Paste Base64 to decode it

There is no Decode button. Use whichever is quickest:

Light video · paste → result
Input
eyJ1c2VyIjoiYWRhIiwicm9sZSI6Im
Result
JSON 2 keys
{
  "user": "ada",
  "role": "admin"
}
Each keystroke updates the result. On a phone, the page scrolls down to the result for you.
On a phoneThe result sits right under the input box, so you can see it while you type. After a paste, the page also scrolls to it.

2Read the result header

The result box is kept clean on purpose. Everything you need is in one header line, and details sit in a quiet footer.

JSON5 keys ⧉ Copy ⬇ .json ⋯ More ✨ Explain Smart viewText Hex </> Code Base64 → gzip → JSON {"service": "checkout""replicas": 3} ✓ Added missing = padding410 B · ASCII · 2 layers · 1 ms 1 2 3 4 5
  1. What the data is: JSON, PNG image, JWT…
  2. Copy and download. Everything else is under ⋯ More.
  3. Explain: ask what the data means (see step 7).
  4. Layers that were peeled. Click one to inspect it.
  5. Footer: auto-fixes on the left, size, charset and time on the right.

3Change the charset of the decoded text

The charset is chosen automatically. If you know better, for example because the text came from a Japanese system, you can override it:

  1. Click Options in the toolbar (the sliders icon on phones).
  2. Pick a charset from the Charset list. The result updates at once.
  3. A small dot on Options shows that a manual setting is on. Click ↺ auto to go back.
CharsetShift_JIS ▾↺ auto
LinesAuto ▾
Peel nested layerson
The Options popover.

4Convert Base64 to an image or file

When the result is an image, PDF or other file:

  1. Click Download. The file gets the right extension (.png, .pdf, .zip…).
  2. Open ⋯ More for Save as PNG / WebP, Copy data URI, Copy CSS or Copy <img>.
  3. Or click the HTML / CSS embed chip to see all three snippets at once.
An image decoded from Base64 in your browser
A real PNG, encoded to Base64 and decoded back in this page.

5Check a JWT

  1. Paste the token (a Bearer prefix is fine).
  2. Read the badge next to the title: ⏰ Expired 2 hours ago or Valid.
  3. To check an HS256/384/512 signature, type the secret under Signature and click Verify. The check runs in your browser.
SignatureKBprh17FL72LAA12aSKGwX5AMpRmut…
Verify HS256
✓ Signature valid

6Export many values at once

When you paste a log, a config file or a list with one value per line:

  1. Click a highlighted value in your text to jump to its decoded result.
  2. Use Copy as key = value to copy everything, or Copy text with values decoded in place from ⋯ More.
  3. For lists, use CSV to download a table, and Only failed rows to find bad lines.
⧉ Copy all⬇ CSV
#InputDecoded
5ZXJpY0BleGFtcGxl!!Not valid Base64, 2 invalid characters

7Repair Base64 that won't decode

  1. Click Show in input to select the first invalid character.
  2. Click Smart repair & extract. It strips the extra text and odd characters around the Base64 and repairs the ending.
  3. If the result is wrong, press Ctrl Z to get your original back.
  4. If it is still unreadable, try the Deep unwrap chip.
Beforetoken: "SGVsbG8sIHdvcmxk\u003d" (copied from a log)
→
After Smart repairSGVsbG8sIHdvcmxk=Hello, world
Repaired. Press Ctrl+Z to restore your original

8Ask what it means

  1. Click Explain under the result. A short summary appears in a card, written by the built-in rules.
  2. Want more? Click Ask on-device AI if your browser has one, or Ask cloud AI….
  3. Before anything is sent, you see the exact redacted text. Click Send only if you are happy with it.
What this isBuilt-in rules · offline

A login token (JWT) signed with HS256 for Ada Lovelace (admin), issued by auth.example.com 3 days ago. Its expiry passed two hours ago.

Decoding is 100% local. AI is optional and gets redacted data only. Ask cloud AI…

9Encode, script or share the result

10Know your Base64: size and padding

Useful when you are checking lengths or wondering about the = at the end. The charts are computed in your browser.

Base64 basics

How long will the encoded output be?

Hover any chart for exact values, or open its data table.

Output length by input size

Every 3 bytes become 4 characters. Padding rounds up to a multiple of 4; Base64URL often drops it.

Overhead as the input grows

Extra size compared with the original bytes, settling at one third (33%)

What a Base64 string is made of

Characters in the Base64 of the PNG shown in step 4

⌨Keyboard shortcuts

Ctrl + V (anywhere)Paste and decode
Ctrl + EnterCopy the result
Ctrl + Shift + ESwitch Decode / Encode
EscClose menus

?FAQ

How do I decode a file instead of text?

Drop the file onto the page or click Open a file. If the file contains Base64 text it is decoded; if it is a binary file, the tool switches to Encode and gives you its Base64.

How do I decode the same value again, one layer deeper?

Layers are peeled automatically. To go further by hand, open ⋯ More → Use as input.

Can I keep my settings?

Charset and line options apply until you change them back with ↺ auto. Nothing is stored in your browser except one flag that remembers the feedback prompt.

How do I report a wrong result?

Click 👎 next to Helpful? under the result, or use Feedback in the header. Nothing you pasted is included.

Does it work offline?

Yes. Once the page is open you can disconnect and keep decoding.

Ready? Paste your first string.

No sign-up. No upload. Works offline.

Open DecodePad →