Base64 encoder and decoder
Encode and decode Base64 with full UTF-8 support.
Frequently asked questions
What is Base64 and what is it used for?
Base64 is an encoding that converts binary data into transmission-safe ASCII text. It is used to embed images in HTML/CSS (data URIs), send data in JSON or URLs, encode credentials in HTTP Basic Auth, and in formats like JWT and PEM certificates.
Is Base64 encryption?
No. Base64 is encoding, not encryption. Anyone can decode it without a key. If you see "credentials in Base64" in a config file, they are readable by anyone reading the file — they are only obfuscated to avoid issues with special characters.
Does it handle UTF-8 and emojis correctly?
Yes. We use TextEncoder/TextDecoder with strict UTF-8, so emojis, accents, and non-Latin scripts encode and decode correctly. The browser's native btoa() does NOT handle UTF-8 directly — that's why many generators fail on non-ASCII input.
