Base64 Encoder & Decoder

Encode text to Base64 or decode Base64 back to text, with full Unicode support.

Loading tool…

How to use it

  1. Type or paste text in the input box.
  2. Press Encode → to convert it to Base64, or ← Decode to convert Base64 back to plain text.
  3. Enable URL-safe mode when the output will be used in URLs or query strings (it avoids +, / and =).
  4. Use Copy to place the output on your clipboard, or Reset to clear both fields.

About this tool

Uses the browser text encoding APIs so accented characters, emoji and other non-ASCII input round-trip correctly — a common failure with naive implementations. Both directions support URL-safe variants and the output updates as you type.

Your input never leaves the browser: this tool works entirely offline once the page has loaded.

Frequently asked questions

Why do other Base64 tools fail on emoji?

Many tools use a naive atob/btoa shortcut that breaks on characters outside Latin-1. This tool encodes via UTF-8 bytes first, so any Unicode string round-trips correctly.

What is URL-safe Base64?

It replaces + and / with - and _ and drops the padding =, making the output safe inside URLs and file names. Decoding here accepts both variants automatically.