Base64 Encode/Decode
FreeEncode text or files to Base64 and decode Base64 strings back
base64encodedecodebinary
All Developer ToolsRelated tools
How it works
1
Enter
Type or paste your plain text to encode, or a Base64 string to decode.
2
Convert
Choose Encode or Decode and the result appears instantly.
3
Copy
Copy the output to your clipboard with one click.
Frequently asked questions
Is Base64 encoding the same as encryption?+
No. Base64 is an encoding scheme that converts binary data to ASCII text. It is fully reversible by anyone and provides no security. Use encryption if you need to protect data.
Is my data safe when I use this tool?+
Yes. Encoding and decoding runs entirely in your browser. Your text never leaves your device, so it is safe to convert tokens, credentials, or any private data.
When would I need Base64 encoding?+
Common uses include embedding images in HTML or CSS, encoding email attachments (MIME), passing binary data in JSON or XML, and encoding credentials for HTTP Basic Authentication headers.
Does Base64 increase the size of my data?+
Yes. Base64 encoding increases data size by roughly 33% because it represents every 3 bytes of input as 4 ASCII characters. This is the trade-off for safe text-based transport.
Can I encode files, not just text?+
This tool is designed for text input. For file-to-Base64 conversion, you would typically read the file as binary first. The tool handles any valid UTF-8 text string.