Runs in this tab · no upload · no account · free
Base64 encode and decode
Encode text to Base64 or decode it back. Chinese, emoji and line breaks are handled correctly.
Questions
Why not just btoa()?
btoa() only accepts Latin-1. Text is first encoded to UTF-8 bytes, so Chinese, accents and emoji survive the round trip.
What is URL-safe Base64?
It swaps + for - and / for _, and drops the = padding, so the string can sit in a URL or filename without escaping.
Is Base64 encryption?
No. It is reversible encoding with no key. Anyone can decode it — never use it to hide passwords.
Other tools
JSON formatter and validator · QR code generator · CSV ↔ JSON converter · Text tools · Unix timestamp converter · Password generator