Base64 Encoder & Decoder
Encode and decode text and files using Base64.
Original: characters →
Encoded: characters
(Expansion: %)
Encoded: characters →
Decoded: characters
About Base64:
- Base64 encoding converts binary data to ASCII text
- Uses 64 characters: A-Z, a-z, 0-9, +, / (and = for padding)
- Increases data size by approximately 33%
- Commonly used for email attachments, data URLs, and API responses
- URL-safe variant replaces + with - and / with _ for use in URLs
Base64 Character Set
Uppercase: A-Z (0-25)
ABCDEFGHIJKLMNOPQRSTUVWXYZ
Lowercase: a-z (26-51)
abcdefghijklmnopqrstuvwxyz
Digits & Symbols: 0-9, +, / (52-63)
0123456789+/
Padding: = (used to make output length a multiple of 4)
Features
- Encode text to Base64 format
- Decode Base64 back to original text
- URL-safe encoding option
- Real-time encoding/decoding
- Display size comparison and expansion rate
- Character set reference table
- Educational information about Base64
How to Use
- Select Encode or Decode mode
- Enter your text or Base64 string in the input area
- For encoding, optionally enable URL-safe encoding
- Click the encode/decode button or type to see real-time results
- Copy the output using the copy button
- Use encoded data in emails, URLs, or API requests