Base64 encoder
Encode any text to Base64 format. Base64 is commonly used to embed binary data in JSON, XML, emails and data URLs.
What is Base64?
Base64 is a binary-to-text encoding scheme that represents binary data using 64 printable ASCII characters (A–Z, a–z, 0–9, + and /). It is not encryption and does not provide security; it simply converts data into a text-safe format so it can be transmitted through systems that only support text, such as email, JSON, XML or URL parameters.
What this tool does
This encoder takes any text input and converts it to its Base64 representation. The result is a string of printable characters that can be safely embedded in text-based formats. The tool performs the standard Base64 encoding defined in RFC 4648.
Common use cases
- Embedding data in JSON or XML: Include binary content such as images or certificates in text-only payloads.
- Data URLs: Embed small images directly in HTML or CSS using
data:image/png;base64,...URLs. - Email attachments: MIME encoding uses Base64 to transmit binary attachments through email.
- API authentication: HTTP Basic Authentication encodes credentials as Base64.
- Configuration and secrets: Store or transport keys and certificates in text form.
How to interpret the result
The output is a Base64 string that may end with one or two = padding characters. The encoded output is longer than the original input — roughly 33% larger — because three bytes of input become four characters of output. Decoding the result with a Base64 decoder returns the original text exactly.
Important limitations
Base64 is an encoding, not encryption. Anyone can decode a Base64 string, so never use it to protect sensitive data. It also does not compress data; it typically increases size. This tool performs a single encoding operation and does not store, transmit or analyze your input beyond producing the encoded output.
Similar tools
Decode any Base64 string back to readable text. Use this tool to inspect encoded payloads, data URLs, tokens and configuration values.
Popular tools
Decode any Base64 string back to readable text. Use this tool to inspect encoded payloads, data URLs, tokens and configuration values.
Extract email addresses from text quickly and see the total count of unique addresses found.
Count characters, words and lines in your text. Useful for social media limits, meta descriptions, essays and form validation.
Get approximate geolocation and network details for an IP address.