Skip to content
Tools

Base64 Encoder & Decoder

Encode and decode Base64 and Base64URL, with full UTF-8 support.

Local
Output

What this tool does

This tool encodes text to Base64 and decodes Base64 back to text. Switch the mode to choose a direction, and turn on URL-safe when you need output that is safe to drop into a URL or a JWT segment. Text is treated as UTF-8, so accents and emoji survive the round trip.

What Base64 is for

Base64 represents binary data using 64 printable characters. It exists so that bytes can travel through channels built for text, such as email bodies, JSON fields, data URIs and HTTP headers. It is an encoding, not encryption: anyone can decode it, so it protects nothing. Use it to move data safely through a text channel, never to hide a secret.

Standard vs URL-safe

Standard Base64 uses + and / and pads with =. Those characters have meaning inside a URL, so the URL-safe variant swaps them for - and _ and drops the padding. JWTs use the URL-safe form. When decoding, this tool detects the URL-safe characters for you.

Common use cases

  • Reading a Base64-encoded value from an API response or config file.
  • Encoding a small image or key as a data URI.
  • Preparing the header or payload segment of a token by hand.

Frequently asked questions

Does it handle emoji and accents?
Yes. Text is treated as UTF-8 before encoding, so characters outside ASCII round-trip correctly.
What is Base64URL?
A variant that replaces + and / with - and _ and drops the = padding, so the result is safe inside URLs and JWT segments.
Is Base64 encryption?
No. Base64 is an encoding, not encryption. Anyone can decode it, so never use it to protect secrets.

Learning resources

Testsmith also runs hands-on courses and a free practice app for the skills behind this tool.

Feedback welcome

Found a bug in this tool, or want it to do something it does not? Tell us and we will take a look.