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 embedding images in CSS, building data URIs, debugging API payloads, decoding JSON Web Token segments, and moving binary data through text-only channels. 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.
- Type or paste your content into the input box on the left.
- 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, this tool automatically ignores the spaces and line
breaks that often appear in wrapped MIME blocks and data URIs, so pasting a
messy string still works. 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.