Encoders / Decoders
Base64 Encode
Base64 turns any text into a safe string made only of letters, digits, + and /. It is used for HTTP Basic authentication headers, data URLs, email attachments and storing binary-like values in JSON or environment variables.
This encoder handles full Unicode text, including accented letters and emoji, by encoding it as UTF-8 first.
How to use the Base64 Encode
- 1Use the Base64 Encode right on this page, or open the full workspace for history, sharing and every other tool.
- 2Paste your input, upload a file, or drag and drop a file onto the input box (up to 25 MB).
- 3The result appears in the output panel automatically and updates when you change the input or an option.
- 4Use Copy Output or Download to save the result. Nothing is uploaded to a server.
Example
Plain text is converted into its Base64 representation.
Input
Hello, Code Formatter Pro!
Output
SGVsbG8sIENvZGUgRm9ybWF0dGVyIFBybyE=
When to use it
- Building an Authorization: Basic header from username:password
- Embedding small text values in JSON, YAML or environment variables
- Preparing test data for APIs that expect Base64 input
Tips and common mistakes
- Base64 is encoding, not encryption — anyone can decode it.
- Encoded output is about 33% larger than the input.
- Use Base64 Decode to check the value round-trips correctly.
Frequently asked questions
Is Base64 secure?
No. It only changes the representation. Never use it to protect passwords or secrets.
Does it support emoji?
Yes, text is encoded as UTF-8 before conversion.