Base64 Encoder & Decoder
Encode text or files and recover the original bytes
Drop your file hereTap to choose a file
or click to browse, or paste from the clipboard
Two alphabets
Choose standard Base64 or URL-safe Base64. URL-safe encoding uses hyphens and underscores and omits trailing padding.
Binary downloads
Decode binary data directly into a downloadable file. The text preview appears for readable UTF-8 content.
Local file encoding
Choose a local file up to 1 MiB to encode its bytes directly. Encoded text is available for copy or download.
How to use the Base64 Encoder & Decoder
- 1
Choose standard Base64 or Base64URL to match the source or desired output.
- 2
Paste Base64 and select Decode. For encoding, paste plain text or choose a file, then select Encode.
- 3
Copy a text result or download the encoded text or decoded bytes.
What people use this tool for
- Inspect Base64-encoded API payloads.
- Encode a small binary fixture for a test.
- Read URL-safe Base64 text.
Frequently Asked Questions
Does Base64 protect a secret?
Base64 is reversible encoding. Anyone with the encoded string can decode it.
Can I encode Unicode text?
Yes. Text is converted to UTF-8 bytes before encoding. A decoded UTF-8 text preview preserves accents and emoji.
Why is there a download without a text preview?
Decoded data can be binary or use another character encoding. Download the original bytes and open them in the appropriate program.
What does the decoder accept?
Paste the Base64 payload itself, with optional spaces or line breaks. Both padded and unpadded canonical encodings are supported for the chosen alphabet. The decoded payload is limited to 1 MiB.