Base64 Encoder and Decoder
Encode text to Base64 or decode it back.
Overview
Encodes text to Base64 and decodes Base64 back to text. Base64 is how binary or text data gets carried through systems that only accept plain text, such as data URLs, email, and some API fields. It runs in your browser, so your input is never uploaded.
How it works
Base64 represents data using a set of 64 printable characters. It takes your input three bytes at a time and maps them onto four characters from that set, which is why encoded output is a bit longer than the original. The process is fully reversible, so decoding turns the Base64 string back into the original text. The conversion happens locally on your device.
How to use it
- Choose encode or decode.
- Paste your text or Base64 string.
- Read the converted result.
- Copy it for use in your data URL, header, or payload.
Examples
Encoding
The text "Hello" encodes to "SGVsbG8=".
Decoding
Paste a Base64 string from an API field to read the plain text it represents.
FAQ
Is Base64 encryption?
Why is the encoded text longer?
What is the trailing equals sign for?
Is my data uploaded?
Related tools
JSON Formatter
Format, validate, beautify, and minify JSON.
Open toolPassword Generator
Generate strong random passwords with length and character options.
Open toolUUID Generator
Generate v4 UUIDs in bulk.
Open toolURL Encoder and Decoder
URL-encode or decode percent-encoded strings.
Open toolHTML Encoder and Decoder
Encode or decode HTML entities.
Open toolEmbed this tool
Paste this snippet to put the tool on your own site. It runs entirely in the visitor's browser, the same as it does here.