ENCODING
EXAMPLES
Explore common encoding and decoding examples with detailed explanations. These examples will help you understand conversion techniques and practice with real-world use cases.
TEXT ENCODING EXAMPLES
INPUT
"Hello World!"
BASE64
SGVsbG8gV29ybGQh
Simple greeting text - most common example
INPUT
"Base64 Encoding"
BASE64
QmFzZTY0IEVuY29kaW5n
The name of our encoding method
INPUT
"123456789"
BASE64
MTIzNDU2Nzg5
Numeric string encoding
INPUT
"user@example.com"
BASE64
dXNlckBleGFtcGxlLmNvbQ==
Email address with padding characters
INPUT
"🚀 Rocket emoji"
BASE64
8J+agCBSb2NrZXQgZW1vamk=
Unicode emoji with UTF-8 encoding
PADDING EXAMPLES
Base64 encoding uses padding to ensure the output length is a multiple of 4 characters. Here's how padding works with different input lengths:
EMPTY STRING
""
BASE64
(empty)
Empty input produces empty output
SINGLE CHARACTER
"A"
BASE64
QQ==
Single character requires two padding characters
TWO CHARACTERS
"AB"
BASE64
QUI=
Two characters require one padding character
THREE CHARACTERS
"ABC"
BASE64
QUJD
Three characters require no padding
REAL-WORLD APPLICATIONS
WEB DEVELOPMENT
- • Data URIs for images
- • API authentication tokens
- • Embedding binary data in JSON
- • URL-safe data transmission
SYSTEM INTEGRATION
- • Email attachments (MIME)
- • Configuration files
- • Database storage
- • XML/HTML embedding
PRACTICE TIPS
LEARNING STRATEGY
- • Start with simple text like "Hello" or your name
- • Practice with different length strings to see padding
- • Try encoding special characters and emojis
- • Use our converter to check your manual calculations
COMMON PATTERNS
- • '=' at the end indicates padding
- • Base64 is always longer than original text
- • Only uses A-Z, a-z, 0-9, +, / characters
- • Output length is always multiple of 4