Base64 Emoji Encoding Example
Base64 handles Unicode characters including emojis perfectly. This is useful when you need to transmit emoji-containing text through systems that only support ASCII.
Quick Example
Common Use Cases
💡 Tip: Just type or paste text — output updates instantly! Base64 is commonly used for embedding images, sending data over HTTP, and more.
Code Examples
Here's how to achieve this in different programming languages:
1// Encode to Base642const input = "Hello 😀🎉 World";3const encoded = btoa(input);4console.log(encoded); // "SGVsbG8g8J+YgPCfjokgV29ybGQ="56// Decode from Base647const decoded = atob("SGVsbG8g8J+YgPCfjokgV29ybGQ=");8console.log(decoded);
Frequently Asked Questions
What is the Base64 encoding of "Hello 😀🎉 World"?
The Base64 encoding of "Hello 😀🎉 World" is "SGVsbG8g8J+YgPCfjokgV29ybGQ=". Base64 converts each character to binary, then encodes in groups of 6 bits using A-Z, a-z, 0-9, +, /.
How do I encode text to Base64?
Use btoa() in JavaScript, base64.b64encode() in Python, or 'echo -n text | base64' in Bash. Our online tool above also encodes instantly.
How do I decode Base64 back to text?
Use atob() in JavaScript, base64.b64decode() in Python, or 'echo text | base64 --decode' in Bash.
Is Base64 encoding the same as encryption?
No, Base64 is NOT encryption. It can be easily reversed by anyone. Never use it to protect sensitive data.
Why does Base64 sometimes end with = or ==?
The = signs are padding. Base64 encodes in groups of 3 bytes to 4 characters. If input isn't divisible by 3, padding is added.