Skip to content
snip tools

Base64 encode and decode

Encode text to Base64 or decode it back. UTF-8 safe and 100% in your browser.

Runs 100% in your browser

How to encode or decode Base64

  1. Choose a mode. Pick Encode to convert text to Base64, or Decode to convert it back.
  2. Enter your text. Type or paste into the input box; the result appears instantly.
  3. Copy the result. Click Copy to grab the output.

About Base64

Base64 turns arbitrary bytes into a safe, text-only representation by mapping every three bytes to four ASCII characters. It's everywhere in web development: data URLs (data:image/png;base64,…), JSON Web Tokens, Basic Auth headers, and email attachments. Because it inflates size by about a third and offers no confidentiality, use it for transport and embedding — not for storage efficiency or security.

Frequently asked questions

What is Base64 encoding?
Base64 represents binary data using 64 printable ASCII characters (A–Z, a–z, 0–9, + and /). It is used to embed binary data — like images or keys — in text-only formats such as JSON, email or data URLs.
Is Base64 encryption?
No. Base64 is encoding, not encryption — it provides no security. Anyone can decode it instantly. Never use it to protect secrets.
Does this handle Unicode / emoji?
Yes. Text is encoded as UTF-8 before Base64, so accented characters, emoji and other non-ASCII text round-trip correctly.
Is my text sent anywhere?
No. Encoding and decoding happen entirely in your browser with the built-in btoa/atob functions. Nothing is uploaded.