How do I encode or decode Base64 online?
Encoding and decoding Base64 online is simple with this free tool.
To Encode Text to Base64:
- Select the "Encode" tab
- Enter your plain text in the input field
- The Base64-encoded result appears instantly in the output field
- Click the copy button to copy the encoded string
To Decode Base64 to Text:
- Select the "Decode" tab
- Paste your Base64 string in the input field
- The decoded plain text appears instantly in the output field
- Click the copy button to copy the decoded text
Features of This Tool:
- Real-time encoding/decoding as you type
- Automatic error detection for invalid Base64
- Character and byte count for both input and output
- Copy-to-clipboard functionality
- All processing happens in your browser (no data sent to servers)
- Handles UTF-8 text encoding properly
Tips:
- Valid Base64 only contains A-Z, a-z, 0-9, +, /, and = (padding)
- Whitespace in Base64 strings is automatically ignored
- The decoder will show an error for invalid Base64 strings
- UTF-8 characters are properly handled during encoding
Use Cases:
- Debug API requests that use Base64
- Encode credentials for Basic Authentication
- Create data URIs for images
- Decode Base64-encoded data from logs or API responses
- Test Base64 encoding in development