Free Online Base64 Encoder and Decoder
Encode plain text to Base64 and decode Base64 strings instantly. Convert between text and Base64 encoding for APIs, data transmission, and configuration files.
Base64 Encoder / Decoder
This tool runs in your browser. Your data is not stored or uploaded.
What is Base64 encoding?
Base64 is a binary-to-text encoding scheme that represents binary data in a printable ASCII string format. It uses a set of 64 characters (A-Z, a-z, 0-9, +, /) to encode any binary data. Base64 is commonly used in email, APIs, data URLs, and configuration files to safely transmit data that might otherwise be corrupted.
Base64 encoding example
Plain text: Hello, World!
Base64 encoded: SGVsbG8sIFdvcmxkIQ==
Common uses for Base64
- Email attachments and MIME encoding
- Data URLs in HTML and CSS
- API authentication tokens and credentials
- JSON Web Tokens (JWT)
- Configuration files and system settings
- Encoding binary data for text-based protocols
How to use this Base64 converter
- Choose the Encode tab to convert text to Base64, or the Decode tab to convert Base64 back to text.
- Paste your input into the input field.
- Click the Encode or Decode button.
- The output appears in the output field. Use Copy to copy it to your clipboard.
Frequently asked questions
Is Base64 encoding secure?
Base64 is an encoding scheme, not encryption. It is human-readable and easily reversible, so it should not be used for security-sensitive data. For secure data transmission, use proper encryption methods like HTTPS/TLS.
Can I encode binary files with Base64?
This tool encodes text strings. To encode binary files, use specialized tools that can read binary data and output Base64-encoded text.
What are the padding characters (=) at the end of Base64?
Base64 pads output with equals signs to ensure the encoded string is a multiple of 4 characters. These are required for proper decoding and should not be removed.