fjordtools / Convert / Base64
Base64 Encode & Decode
Encode and decode Base64 in your browser. Handles UTF-8 text and the URL-safe variant. Nothing is uploaded.
Text
Base64
About Base64how it works and good to know
What Base64 is for
Base64 turns arbitrary bytes into plain ASCII text, so binary data can travel through systems built for text: email, JSON fields, data URIs and HTTP headers. It is an encoding, not encryption. Anyone can decode it.
Standard and URL-safe
The standard alphabet uses + and / and pads with =. The URL-safe variant swaps them for - and _ and drops the padding, so the result can sit in a URL or a JWT without escaping.
Unicode
Text is converted to UTF-8 bytes first, so emoji and non-English characters round-trip correctly. A plain btoa() call fails on those.
Related tools
- URL EncoderPercent-encode, decode and take apart URLs and query strings.
- JWT DecoderRead the header, payload and expiry of a JSON Web Token.
- Hash & HMACMD5, SHA-1, SHA-256, SHA-384, SHA-512 and HMAC for text and files.
- Timestamp ConverterUnix time to dates and back, in any time zone.
- Number BaseHex, binary, octal and decimal, plus KB, KiB, MB and MiB.
- YAML JSON TOMLConvert config files between YAML, JSON and TOML.