Base64 Decode and Encode Online

A free Base64 converter tool: decode or decrypt Base64 to text, JSON, JWT, images and files, or encode text back. Charset and layers are detected for you, with private AI explanations when you ask.

AI explain · private Free Never uploaded
Your input0 chars

Input

Paste or type here
Paste or type Base64 here …or anything that contains it: a JWT, a log line, a data: URI, a Kubernetes Secret. Tip: press Ctrl V anywhere on the page, or drop a file onto it.
Paste anywhere · Ctrl Enter copies the result

Result

How it works, and questions

Base64 decode examples

Real encoded inputs and what this free Base64 decoder makes of them. Open any of them in the tool above.

Everything this Base64 decoder and encoder does … features

The full feature list of this online Base64 converter, grouped by what you are trying to do. All of it works in the same box, automatically, without a mode to pick first. For step-by-step instructions, see the visual guide.

Figure 1. One paste, two layers peeled, JSON out, in nine seconds. The clip is drawn and recorded in your browser.

Why this Base64 converter works this way

The design follows from three observations. The numbers are either measured in your browser or come from a public source named under each figure.

Figure 2. Share of views among four common Base64 failure questions on Stack Overflow (2.5 million views in total). Each one is now handled automatically: file detection, padding repair, format detection and charset detection. Source: Stack Exchange API, 26 Nov 2026.
Figure 3. Byte-value distribution of text, gzip and random data, computed in your browser just now (). Text uses a narrow band of values and the other two spread evenly. That is how the decoder can say "this is not text".

Measuring on this device…

Figure 4. Decode time against payload size, measured on this device when the chart appeared (lower is better). Detection and layer peeling cost a little more than a bare atob(), and the work never leaves your machine.

Is Base64 encrypted? Privacy, decryption and AI

Base64 is not encrypted: it is a reversible encoding, so to "decrypt" Base64 you only need to decode it. That is plain arithmetic, so this tool always runs it in your browser. The page's security policy blocks network connections, and you can check that in your browser's developer tools or by going offline.

AI is only used for questions that rules can't answer well, such as "what is this, and is it safe?". It works in three steps, and you choose how far to go:

StepRuns onSees
Built-in rulesThis tabEverything. Nothing leaves the page
On-device modelYour browser's own model, if it has oneEverything. Nothing leaves the device
Cloud modelOnly after you click SendA redacted summary you can read first. Private keys and passwords are never sent

This is what redaction does to a decoded config before anything could be sent:

Decoded
user: ada@example.com
password: s3cr3t-P@ssw0rd
host: 10.0.4.17:5432
token: eyJhbGciOiJIUzI1NiJ9.eyJzdWIi…
What a cloud model would see
user: <EMAIL>
password: <SECRET>
host: <IP>:5432
token: <JWT>

Free online Base64 tools compared

How DecodePad compares with other Base64 decode and encode tools, from our own review of each public decode page in November 2026.

FeatureThis toolbase64decode.orgbase64.guruCyberChefjam.dev
Decodes in your browser by default✓✗ server✗ server✓✓
Live decoding as you type✓opt-in, UTF-8 only✗✓✓
Auto charset, and tells you which✓manualauto, not shownmanual✗
Image / PDF preview in the same box✓separate pageseparate pagevia recipe✗
Multi-line auto-detect✓checkbox✗manual✗
Nested / gzip auto-peel✓✗✗"Magic"✗
JWT, logs, K8s Secrets✓✗✗manual✗
Explains invalid input✓✗partlypartly✗
Usable on mobile (result visible)✓✗partly✗✓

Base64 decode and encode FAQ

Is Base64 encryption? Can I decrypt Base64?

No, Base64 is an encoding, not encryption. Anyone can decode it, and "decrypting" Base64 simply means decoding it, which this tool does instantly. If the bytes underneath are really encrypted, DecodePad tells you the result is not text instead of showing garbage, because only the key can turn ciphertext back into data.

Is it safe to paste passwords, tokens or keys?

Yes. Decoding happens in this browser tab and nothing is uploaded. The page's security policy (connect-src 'none') makes the browser refuse fetch, XHR, WebSocket and beacon connections. The only exceptions are when you click Send feedback or Send to AI, and the request counter shows each one. You can confirm it in DevTools or by going offline.

Why do other decoders show garbage like �

Because they assume the bytes are UTF-8 or Latin-1. This tool tests several charsets (GBK, Big5, Shift_JIS, UTF-16…), picks the most likely one, and shows you which it picked.

What if the result isn't text?

Then you're told so. Known file types are previewed and can be downloaded with the right extension. Unknown binary data is shown as a hex dump, with a guess at what it is (encrypted, compressed, hash…).

What's the difference between Base64 and Base64URL?

Base64URL uses - and _ instead of + and /, and often drops the = padding. Both are accepted automatically; the result panel tells you which one it was.

Can this Base64 translator handle images and files?

Yes. It works as a translator in both directions: Base64 to text, images, PDFs and other files, and text or files back to Base64. Files are recognised from their bytes and downloaded with the right extension.

How do I decode Base64 to an image?

Paste it. A data:image/… prefix is optional, because the format is detected from the bytes. Download it, convert it to PNG or WebP, or copy it as a data URI or CSS.

Guide

How to use the DecodePad Base64 decoder

A six-minute visual guide to decoding and encoding Base64 online, with screenshots and a short video.