Base64 Encoder / Decoder

Encode text to Base64 or decode it back — live as you type, with full UTF-8 and emoji support plus a URL-safe mode.

Live — converts as you type

100% private — encoding happens in your browser. Nothing is transmitted.

What Base64 Is (and Isn't)

Base64 turns any data into 64 printable characters so it survives text-only systems — data URLs, email attachments, JSON payloads, JWT segments and HTTP basic auth. Every 3 bytes become 4 characters, so output is about 33% larger than the input.

It is not encryption. Anyone can decode Base64 instantly — never use it to "protect" passwords or secrets. For genuinely strong secrets, use our Password Generator.

Common Uses

  • Data URLs: inline small images or fonts directly in CSS/HTML.
  • APIs & JWT: inspect token payloads (decode the middle segment).
  • Basic auth: user:password encoded for the Authorization header.
  • Config files: safely embed binary values in YAML/JSON — format the JSON with our JSON Formatter.

Frequently Asked Questions

What is Base64 encoding?
Base64 represents binary data using 64 printable characters so it survives text-only systems — email, data URLs, JSON payloads and HTTP basic auth.
Is Base64 encryption?
No. Base64 is encoding, not encryption — anyone can decode it instantly. Never use it alone to protect secrets.
Does this tool support emoji and non-English text?
Yes. Text goes through UTF-8 before encoding, so emoji, accents, Chinese, Arabic and all Unicode characters work correctly.
What is URL-safe Base64?
A variant replacing + with - and / with _ so the result works in URLs and filenames without escaping. Toggle it with the URL-safe option.