Base64 Encoder/Decoder Description
Encode text to Base64 or decode Base64 back to text. Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format.
How to use
- Select 'Encode' or 'Decode' mode.
- Paste your content into the input field.
- The result is generated instantly in the output field.
Common Scenarios
- Embedding images or fonts directly into CSS/HTML using Data URIs.
- Transmitting binary data over systems that only support text-based protocols.
- Encoding basic authentication headers for API requests.
Data Structure
Base64 uses a specific alphabet consisting of 64 characters: A-Z, a-z, 0-9, +, and /. The = character is used for padding.
Conversion Principles
It works by dividing every 3 bytes (24 bits) of input into 4 groups of 6 bits each. Each 6-bit group is then mapped to one of the 64 characters in the Base64 index table.