Base64 Encoder / Decoder
Encode text or binary data to Base64, or decode Base64 back to plain text.
Plain Text
Base64
About Base64
Base64 encoding converts binary data to ASCII text using 64 printable characters. It's commonly used to embed binary data in JSON, HTML, CSS, and HTTP headers. URL-safe mode replaces + with - and / with _ so the result can be used in URLs without encoding.
What is a Base64 Encoder & Decoder?
Base64 is an encoding scheme that converts binary data into ASCII text using 64 printable characters (A-Z, a-z, 0-9, +, /). It is widely used to embed binary content such as images, files, and credentials into text-based formats like JSON, HTML, CSS, and HTTP headers.
Common Use Cases
Encoding images to embed directly in HTML or CSS
Encoding API credentials for HTTP Basic Authentication
Transmitting binary data in JSON payloads
Storing binary data in databases as text
Decoding Base64 JWT token payloads
Tips & Best Practices
URL-safe Base64 replaces + with - and / with _ so the result can be used in URLs without percent-encoding
Base64 increases data size by approximately 33%
Base64 is encoding not encryption β do not use it to hide sensitive data
Frequently Asked Questions
What is Base64 encoding?βΌ
Base64 encoding converts binary data to a string of ASCII characters. It is used to safely transmit binary data through systems that only support text, such as email (MIME) or JSON APIs.
Is Base64 the same as encryption?βΌ
No. Base64 is encoding, not encryption. Anyone can decode a Base64 string instantly. Never use Base64 to protect sensitive data β use proper encryption like AES instead.
What is URL-safe Base64?βΌ
URL-safe Base64 replaces the + character with - and / with _ so the encoded string can be used in URLs and filenames without needing percent-encoding.
Why does Base64 end with == signs?βΌ
The = signs are padding characters added to make the Base64 string length a multiple of 4. They are required by the standard but can sometimes be stripped safely.