Base64 Encode

Convert text to a Base64 string - handy for embedding data in URLs, JSON or data URIs.

About the Base64 Encoder

Base64 encoding rewrites any text as a string of 64 safe characters - A-Z, a-z, 0-9, plus + and / - so it can travel through systems that only expect printable ASCII. This tool takes whatever you type and returns its Base64 representation, with full UTF-8 support for accented letters, emoji and other multi-byte characters.

How to use it

  • Type or paste your text into the input box.
  • The Base64 output updates as you type - no button to press.
  • Copy the result and drop it into your URL, JSON payload or data URI.

A common use case is inlining a small image as a data: URI or stashing a token in a config file. Keep in mind that Base64 is encoding, not encryption - anyone can decode it, so never use it to hide secrets. The output is also about 33% larger than the original. Everything runs in your browser, so the text you paste never leaves your device or touches a server.

Frequently asked questions

Does Base64 encoding make my data secure?

No. Base64 is a reversible encoding, not encryption. Anyone with the string can decode it back to the original text, so do not treat it as a way to protect passwords or secrets.

Can this tool encode emoji and accented characters?

Yes. The text is read as UTF-8 before encoding, so emoji, accents and other non-ASCII characters are preserved and decode back exactly.

Why is my Base64 output longer than the original text?

Base64 represents every 3 bytes as 4 characters, so the encoded result is roughly 33% larger than the input. That overhead is the trade-off for ASCII-safe transport.

Is my text uploaded anywhere?

No. Encoding happens entirely in your browser using JavaScript, so nothing you paste is ever sent to or stored on a server.

Related tools