Base64 encoder
& decoder

Encode any text to Base64 or decode Base64 back to plain text. Emojis, accents, and non-Latin scripts included. Runs entirely in your browser.

How to use

Encode or decode Base64 in 3 practical steps

No signup, no uploads, and nothing to install. Type or paste your text (it can be anything!), select whether to encode or decode, then copy the result.

Step 1

Type or paste your text

Drop any string into the input area, plain text, JSON, HTML, emojis, a Base64-encoded payload. Anything you need to convert in either direction.

Step 2

Pick a direction

Click "Base64 Encode" to convert your text into a Base64 string, or "Base64 Decode" to turn a Base64 string back into the original UTF-8 text.

Step 3

Copy the result

The output appears below instantly. Hit the copy button to grab the result, optionally toggle URL-safe mode or 76-character line wrapping first.

Why use it

A Base64 encoder and decoder that just works

Most online Base64 tools mangle emojis and non-Latin text or hand your input off to a server. This one is fully Unicode-safe and runs entirely in your browser.

Unicode-safe

Emojis, accents, Arabic, Chinese, Hebrew, anything UTF-8 supports survives the round trip. No more "â€" garbage characters after decoding.

100% private

All encoding and decoding happens in your browser tab. Your input never gets uploaded, logged, or stored. Close the tab and it's gone.

URL-safe output

Toggle the URL-safe option to swap + and / for - and _ and strip the = padding, ready to drop into a query string.

Line wrapping

Optional 76-character line wrapping for the classic MIME / PEM look, useful when embedding Base64 in emails or PEM-style certificates.

Paste-tolerant decoder

Paste Base64 with line breaks, extra whitespace, or missing padding, it all decodes correctly. URL-safe variants (- and _) are also handled automatically.

Clear error messages

Invalid Base64 input gets a precise error instead of a cryptic exception. The tool also auto-tolerates whitespace and missing padding when decoding.

Who it's for

Built for everyone who touches encoded data

From devs debugging APIs to support teams reading email headers, Base64 shows up everywhere. This tool helps you read it without writing a script.

Developers

Debug JWT payloads, basic-auth headers, data URLs, and webhook bodies without spinning up a REPL. Encode and decode in a single tab while you work.

Security analysts

Inspect Base64-encoded payloads from phishing emails, suspicious URLs, or log files in a sandboxed browser tab, no server-side processing involved.

Support engineers

Quickly decode the Base64 bits inside customer error reports (image data, certificates, signed URLs) so you can move tickets along faster.

Designers & webmasters

Convert small assets to inline data: URLs or check that the Base64 chunk in your stylesheet decodes back to the right SVG or image.

Data engineers

Read Base64-encoded fields in JSON, NDJSON, or message-queue payloads. Toggle URL-safe mode for tokens used in query strings and cookies.

Students & learners

Wrap your head around how Base64 works by watching characters become 6-bit groups. Test edge cases, line wrapping, and URL-safe variants.