Free online Base64 encoder and decoder
Convert text to Base64 or decode Base64 back to plain text instantly. This Base64 converter is fully UTF-8 safe, so emoji, accented characters, and any other Unicode encode and decode without corruption. It is perfect for building text data URIs, debugging API payloads, and decoding JSON Web Token segments in Base64url mode. Binary payloads that are not valid UTF-8 are reported clearly. Everything runs live in your browser as you type.
How to encode or decode Base64
- Choose Encode to convert text to Base64, or Decode to turn Base64 back into text.
- Select Standard Base64 or Base64url, then type or paste your content, or load an example.
- Read the converted result in the output box — it updates automatically.
- Use Swap to move the result into the input and flip the mode for a quick round trip.
- Click Copy result to copy the output, or Clear to start over.
Common uses for Base64
Developers reach for Base64 whenever binary data needs to survive a
text-only transport. It powers data: URIs that inline images and
fonts, encodes attachments in email, and packages credentials in HTTP
headers. When decoding text, this tool ignores spaces and line
breaks in wrapped MIME blocks and accepts complete Base64 data URIs.
Select Base64url for URL-safe strings that use - and _;
its encoded output omits padding. Decoding a JWT segment does not verify its signature. If you are cleaning up API requests, you may also
want the URL encoder / decoder for
percent-encoded query strings, or the
JSON formatter to pretty-print a decoded
payload.
Private and secure by design
Base64 is an encoding, not encryption — it hides nothing, since anyone can decode it. Because this converter runs entirely client-side, your data is never uploaded, making it safe to work with sensitive strings. For real data integrity or fingerprinting, generate a checksum with the hash generator instead.