This free Base64 encoder and decoder converts text to and from standard Base64, and it also encodes or decodes URL components. Choose one of the four modes, enter text, and select Convert. The conversion runs in your browser, so the text is not sent to a server for processing.
Available conversion modes
- Base64 Encode: convert UTF-8 text into a standard Base64 string.
- Base64 Decode: decode a standard Base64 string back into readable UTF-8 text.
- URL Encode: percent-encode a text value so reserved characters can be safely included in a URL component.
- URL Decode: decode percent-encoded text. In this mode, plus signs are interpreted as spaces, matching common form/query-string encoding.
How to encode or decode Base64
- Select Base64 Encode or Base64 Decode.
- Paste or type the text into the input field.
- Select Convert to run the conversion.
- Review the result in the output field.
- Select Copy to copy the output.
Base64 example
The text Hello, world! becomes SGVsbG8sIHdvcmxkIQ== when encoded with standard Base64. Decoding that value returns the original text. Base64 is reversible encoding: it changes how bytes are represented, not the underlying information.
Base64 is not encryption or compression
Base64 does not protect confidential information. Anyone who receives a Base64 string can decode it without a password or secret key. It also does not make data smaller: standard Base64 output is usually about one-third larger than the original bytes before any line wrapping. Use encryption when confidentiality is required and compression when reducing size is the goal.
Base64 vs. URL encoding
These formats solve different problems. Base64 represents bytes using a text-safe alphabet. URL encoding replaces characters that have special meaning in a URL component with percent-encoded byte values. For example, URL encoding is useful for a search term or query parameter, while Base64 is often used to represent binary data in text-oriented formats.
This tool uses standard Base64 for text. It does not provide a dedicated Base64URL mode, file upload, binary download, MIME line wrapping, per-line batch conversion, or selectable character sets. If you need to encode an image or another binary file, use a file-capable encoder rather than treating the file as ordinary text.
Unicode and character encoding
Text is converted using UTF-8 before Base64 encoding. When decoding, the resulting bytes are interpreted as UTF-8 text. If a Base64 value represents binary data or text in a different character encoding, the decoded output may not be readable in this text-only interface.
Privacy and practical limits
Encoding and decoding happen in the browser. The tool does not upload the text for conversion. Very large inputs can still use substantial browser memory, and malformed Base64 or invalid UTF-8 may produce an error. Do not use Base64 as a way to hide passwords, API keys, or personal data.
Related developer utilities: JSON Formatter for readable API payloads, Text Diff for comparing encoded strings, and Code Minifier for simple HTML, CSS, and JavaScript cleanup.
