Base64 Encode
Encode text to Base64 instantly. Free online Base64 encoder with support for UTF-8 and other encodings.
💡 Enter text → get Base64. Example: "Hello" → "SGVsbG8=".
How to Encode Text to Base64
Step-by-step guide with examples
What is Base64 Encoding?
Base64 encoding converts binary data into a text-safe format using 64 ASCII characters (A-Z, a-z, 0-9, +, /). It’s used to transmit binary data over text-based protocols like email (MIME) and HTTP.
How Base64 Encoding Works
1. Convert the input text to bytes using the selected encoding. 2. Group bytes into 3-byte (24-bit) blocks. 3. Split each block into four 6-bit values. 4. Map each 6-bit value to a Base64 character. 5. Pad with ‘=’ if the input doesn’t divide evenly. Example: "Hi" → bytes 72,105 → Base64 "SGk="
Common Use Cases
• Embedding images in HTML/CSS (data URIs). • Sending binary data in JSON APIs. • Email attachment encoding (MIME). • Storing binary data in XML or config files. • JWT token encoding.
Frequently Asked Questions
4 common questions answered
Q1What is Base64 encoding?
Q2How to encode text to Base64?
Q3Is Base64 encryption?
Q4What is binary to Base64?
Related Conversion Tools
Explore 6 similar converters
Explore All Tool Categories
Browse our complete collection of 54 converters & guides