Skip to content
Tiny Tools

Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 back to text, with UTF-8 support and an optional URL-safe variant. Instant, private and browser-based.

About this tool

Convert text to and from Base64, a way of representing binary or text data using a 64-character ASCII alphabet. It is commonly used in data URLs, email attachments, tokens and config files.

Encoding is UTF-8 safe, so accented characters and emoji round-trip correctly, and a URL-safe variant is available for use in links. Everything runs locally in your browser.

Examples

  • "Hello, world!" → "SGVsbG8sIHdvcmxkIQ=="
  • Decode "8J+Yhw==" → "😇"
  • URL-safe mode replaces + and / with - and _

Frequently asked questions

What is Base64 used for?

Base64 encodes binary or text data as ASCII so it can be embedded where only text is allowed, such as data URLs, JSON, JWTs and email.

Does Base64 encrypt my data?

No. Base64 is encoding, not encryption — anyone can decode it. Do not use it to protect secrets.

What is the URL-safe variant?

It swaps the "+" and "/" characters for "-" and "_" and drops padding, so the result is safe to place directly in URLs.

More tools