Skip to content
SnapTools

Base64 Encode / Decode

Runs in your browser

Encode text to Base64 or decode Base64 back to text. Commonly used in data URLs, APIs, and encoding binary-like data as text.

About this tool

Base64 is an encoding scheme that turns binary or text data into a string of letters, numbers, and a few symbols. It is often used in data URLs, email attachments, and APIs where raw binary cannot be sent. Encoding is one-way in terms of readability; decoding restores the original.

How to use

  1. Paste the text you want to encode, or a Base64 string you want to decode.
  2. Click Encode to convert text to Base64 (e.g. for embedding in data URLs).
  3. Click Decode to convert Base64 back to readable text.

When to use this tool

  • Creating data URLs (e.g. data:text/plain;base64,...) for embedding small assets.
  • Encoding binary-like data for APIs or config that expect text.
  • Decoding Base64 from API responses, emails, or certificates.
  • Obfuscating or transporting text in environments that only allow safe characters.

Tips

  • Standard Base64 uses A–Z, a–z, 0–9, +, and /. Padding uses =.
  • Any text works, including Hindi, emoji and accented letters: it is encoded as UTF-8 first, which is what other systems expect.
  • Decoding accepts URL-safe Base64 (- and _) and missing = padding.

FAQ

Does it handle Hindi, emoji and other non-English text?
Yes. Text is converted to UTF-8 bytes before encoding, and decoded back from UTF-8, so every language and emoji round-trips exactly.
Is Base64 encryption?
No. Base64 is encoding—anyone can decode it. Do not use it to hide secrets; use proper encryption for that.