Base64 Encoder & Decoder
Base64 represents binary data using 64 printable characters, so it can travel safely through systems that only handle text — email bodies, JSON fields, data URIs and HTTP headers. This tool converts in both directions.
Free, no signupRuns entirely in your browser
About
What the Base64 Encoder & Decoder does
It is worth being clear about what Base64 is not: it is an encoding, not encryption. Anyone can decode it instantly, as this page demonstrates. It provides zero confidentiality, so never use it to protect a password or a token from being read.
How it works
Using the Base64 Encoder & Decoder
- 1Paste your text or Base64 string.
- 2Choose whether to encode or decode.
- 3Encoding converts the text to UTF-8 bytes, then maps each group of three bytes to four Base64 characters.
- 4Decoding reverses that, reconstructing the original bytes and reading them back as UTF-8.
- 5Copy the result.
Use cases
What people use it for
- Embedding a small image in CSS or HTML as a data URI
- Decoding a Base64 field from an API response
- Encoding credentials for HTTP Basic authentication
- Moving binary data through a text-only field
FAQ
Frequently asked questions
6 related
All tools →