Encode / Decode

Base64 Encode

Encode text to Base64 in your browser — fast, free and private. Unicode-safe; nothing is uploaded, conversion happens 100% on your device.

Output

100% in your browser — nothing you type is ever uploaded.

How to Base64 encode text

  1. Type or paste your text into the input box above.
  2. The Base64-encoded result appears instantly in the output box.
  3. Click Copy to copy the encoded string to your clipboard.

What this tool does

This tool converts plain text into Base64 — a text-safe representation of binary data made of the characters A–Z, a–z, 0–9, +, / and =. The input is first converted to its UTF-8 byte sequence, so the result is Unicode-safe: accented letters, CJK text and emoji all encode and decode correctly.

Common reasons to Base64 encode text

  • Embedding binary-ish data or credentials inside a JSON payload or config file.
  • Building a data: URI to inline a small asset directly in HTML or CSS.
  • Constructing an HTTP Basic Authentication header.
  • Passing text safely through systems that only accept ASCII, like some legacy APIs or email transports.

Related tools

  • Base64 Decode — reverse this conversion back to plain text.
  • JWT Decoder — decode a JSON Web Token's Base64url-encoded header and payload.

Frequently asked questions

Is my text uploaded anywhere?
No. The encoding happens locally in your browser with the Web Crypto/TextEncoder APIs. Nothing is sent to a server, so passwords, tokens and private notes stay on your device.
Does this handle Unicode and emoji correctly?
Yes. Text is first converted to its UTF-8 byte sequence before Base64 encoding, so accented letters, CJK characters and emoji all round-trip correctly.
What is Base64 actually used for?
Base64 turns arbitrary binary data into plain ASCII text, which makes it safe to embed in places that only accept text — JSON payloads, URLs, email attachments, data: URIs and HTTP Basic Auth headers.
Is Base64 encoding the same as encryption?
No. Base64 is a reversible text encoding, not encryption — anyone can decode it instantly with no key. Never use Base64 alone to protect sensitive data.
Why does the output end with = signs?
Base64 groups input into 3-byte chunks and encodes each as 4 characters. When the last chunk is short, = padding characters fill the gap so decoders know where the data ends.
Can I encode a large block of text?
Yes, the textarea accepts as much text as your browser can hold in memory — there is no artificial length limit, and everything updates live as you type or paste.