Text tool
Base64, both directions.
Text or files, encode or decode, with URL-safe output and proper UTF-8 handling — the part most online converters get wrong.
- Free, no sign-up
- Nothing is uploaded
- No watermark, no limits
Base64 encoder and decoder
FreeOutput appears here.
Worth knowing
How to get this right.
-
01
Base64 is encoding, not encryption
Anyone can decode it in one step — this page does it instantly. It exists to move binary data safely through channels that only handle text, such as email bodies, JSON fields and data URIs. Never treat a Base64 string as a way of hiding anything.
-
02
UTF-8 is where most converters break
The browser's btoa only accepts Latin-1, so any accent, emoji or non-Latin character throws. This tool converts to UTF-8 bytes first, which is why café and 日本語 round-trip correctly here and produce garbage in a lot of other online tools.
-
03
It costs you a third in size
Base64 turns every three bytes into four characters, so expect roughly 33% growth. That is why inlining a large image as a data URI is usually a bad trade — you save one request and pay for it on every page load, uncached.
Questions
About this tool.
Need this built into something?
These are the small pieces. We build the systems they belong to.