What is Base64 encoding?
Base64 is a binary-to-text encoding scheme that represents binary data using 64 printable ASCII characters: uppercase A–Z (26), lowercase a–z (26), digits 0–9 (10), plus (+) and slash (/), with equals (=) used as padding. It was designed to safely transmit binary data over text-based protocols that might corrupt raw binary bytes. Today it appears throughout web development: data URI images embedded in CSS, Basic Auth headers, JWT tokens, MIME email attachments, and API payloads containing binary content.
The most visible use of Base64 in modern web development is the data URI format: data:image/png;base64,... — embedding an image directly in HTML or CSS without an additional HTTP request, useful for small icons and inline backgrounds. JWTs (JSON Web Tokens) use Base64url encoding (a variant using - and _ instead of + and /) for their header and payload sections. Basic HTTP authentication sends credentials encoded as Base64 in the Authorization header. Recognizing and decoding Base64 in API responses is a foundational debugging skill for developers.
Important: Base64 is encoding, not encryption. Anyone can decode Base64 with no key or password — it provides zero confidentiality. Never use Base64 to protect sensitive data. Base64 increases data size by approximately 33%: every 3 bytes of binary become 4 Base64 characters. This size trade-off is acceptable because the encoded data is safe to transmit over any text-based channel. This tool supports standard Base64 (RFC 4648). All encoding and decoding runs locally in your browser — nothing is sent to any server.