Base64 Encode / Decode
Encode and decode Base64 for text and files with UTF-8 support.
Plain text / input
Base64
How to use Base64 Encode / Decode
Enter text or choose a file
Type/paste text to encode, or select a file to convert to Base64.
Encode or decode
Click Encode to produce Base64, or paste Base64 and click Decode to restore the original text.
Copy the result
Copy the output for use in code, APIs, or documents.
Frequently asked questions
Is Base64 encryption?
No. Base64 is an encoding, not encryption. It can be reversed by anyone and should not be used to protect sensitive data.
Does it support Unicode/emoji?
Yes. Text is encoded and decoded using UTF-8 so international characters and emoji are handled correctly.
What is URL-safe Base64?
It uses - and _ instead of + and / and typically removes padding, making it safer for URLs and filenames.
Are my files uploaded?
No. Encoding and decoding happen entirely in your browser.
Why is the output longer?
Base64 represents 3 bytes as 4 characters, so encoded data is roughly 33% larger than the original.
About Base64 Encode / Decode
The Base64 Encode / Decode tool converts text and files to Base64 and back again, entirely in your browser. It handles UTF-8 correctly, supports URL-safe Base64, and can encode a local file without uploading it anywhere. Base64 is commonly used for embedding data in JSON, email, HTML, and APIs, so having a fast, private converter is essential for everyday development work.
What Base64 is used for
Base64 is an encoding scheme that represents binary data as ASCII text using 64 printable characters. It is not encryption and it does not reduce size; in fact, encoded output is about one third larger than the original. Developers use Base64 to safely transport binary data through text-only channels such as JSON payloads, XML, email bodies, data URLs, and configuration files. Because the output contains only common characters, it avoids issues with control characters, line breaks, or encoding mismatches.
UTF-8 and URL-safe variants
A common pitfall is encoding Unicode text incorrectly by treating characters as single bytes. This tool encodes and decodes using UTF-8, so emoji and non-Latin scripts round-trip accurately. It also supports URL-safe Base64, which replaces `+` and `/` with `-` and `_` and omits padding, making the result suitable for filenames, query parameters, and tokens where standard Base64 characters would need extra escaping.
Files, privacy, and practical tips
You can encode a local file to its Base64 representation without any server request, which is useful for generating data URLs or embedding small assets. Decoding expects valid Base64 input; whitespace is ignored and common URL-safe forms are accepted. Since everything runs locally, you can safely work with sensitive strings and files. Remember that anyone can decode Base64, so never treat it as a way to protect secrets.
Use Base64 Encode / Decode on your site
This tool runs free and private in the browser. Paste it anywhere — blog posts, documentation, team wikis — and your visitors will use it without leaving your site. The embed includes a small "Made with The Tools Today" credit link.
Related tools
URL Encode / Decode
Encode or decode URLs and query parameters safely in your browser.
Open toolJWT Decoder
Decode JWT header and payload claims locally (signature not verified).
Open toolHash Generator
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes for text or files.
Open toolImage to Base64
Convert an image to a Base64 data URL and copy HTML/CSS snippets.
Open tool