Base64 Encoder & Decoder

Encode text to Base64 or decode Base64 strings instantly — runs entirely in your browser, nothing is sent to any server.

Plain Text
Base64 Output

What is Base64?

Base64 is a binary-to-text encoding that represents binary data using 64 printable ASCII characters. It's widely used to embed binary data in text-based formats: images in CSS (background: url('data:image/png;base64,...')), JSON payloads, email attachments, and HTTP Basic Auth headers.


Common use cases

• Embed images directly in HTML/CSS without a separate HTTP request
• Encode binary data for JSON APIs that only accept strings
• Pass binary data in URL parameters safely
• HTTP Basic Auth: Authorization: Basic base64(user:password)
• JWT tokens use Base64URL (URL-safe variant of Base64)