Skip to content
All tools

Encode

Base64 Encoder & Decoder

Encode and decode Base64 strings in your browser.

Full guide

Loading tool…

Free · No signup Live results Mobile-friendly

Basic

What it is & how to use it

Base64 encodes binary or text into an ASCII string for transport (data URLs, some APIs). It is encoding — not encryption.

How to use the Base64 Encoder & Decoder

1) Paste text.
2) Encode or decode.
3) Copy output.
4) Do not treat Base64 as a secrecy control.

Intermediate

Formula & worked example

Base64 maps bytes to a 64-character alphabet with padding (=).
Round-trip: decode(encode(x)) should equal x for valid input.

Advanced

Interpretation, edge cases & next steps

Anyone can decode Base64 — never hide secrets this way.
Advanced: watch UTF-8 vs binary assumptions; URL-safe variants differ; pair with JSON/URL tools in pipelines.

Frequently asked questions

Is Base64 encryption?

No — it is reversible encoding.

Why padding =?

Pads to full quantum of encoded output.

URL-safe Base64?

Some systems replace +/ and drop padding — check your target.

Binary files?

Prefer dedicated file flows; this UI is text-oriented.

Runs where?

In your browser.

Deep guide

Read the full guide

Longer teaching, worked scenarios and mistakes — then jump back into this tool with example numbers.

Open full guide All guides

Embed this tool

Paste on your site. The iframe posts height via postMessage (type: tcb-embed-height).

<iframe src="https://tcbtools.com/tool-embed/base64-encoder-decoder/" title="Unix Timestamp Converter" style="width:100%;min-height:640px;border:0;border-radius:12px" loading="lazy"></iframe>

Open embed preview · Workflows · Compare