Base64 Encoder / Decoder
Text and files to Base64 and back — UTF-8 safe, URL-safe option.
Base64 is encoding, not encryption — anyone can decode it. Never use it to protect secrets.
Encode and decode Base64 instantly — UTF-8 safe (emoji and every language work), with a URL-safe variant toggle, automatic padding repair on decode, file-to-data-URI conversion for embedding images in code, and a one-click swap to chain operations. Built for developers, works for everyone.
How to use it
- Pick Encode or Decode — output updates live as you type or paste.
- Toggle URL-safe when the Base64 travels in URLs or tokens.
- Encoding an image or small file? Use the file button to get a ready data URI.
Frequently asked questions
What is Base64 used for?
Embedding binary data where only text is allowed: images inside CSS/HTML (data URIs), email attachments, API payloads, and basic data transport in URLs and tokens.
Is Base64 encryption?
No — it is a reversible encoding with zero secrecy. Anyone can decode it instantly. For secrets you need actual encryption.
Why does my Base64 fail to decode?
Usually missing padding (=), stripped characters, or a URL-safe variant — our decoder fixes padding and accepts both variants automatically.
Does encoding work with emoji and other languages?
Yes — the tool is UTF-8 safe, so emoji, Urdu, Hindi, Arabic and every other script encode and decode correctly (naive btoa alone breaks on these).
Developer-adjacent tools: the word counter, case converter and QR generator — all in our free daily tools.
