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)

Related Tools

JSON Formatter Format, validate and minify JSON online. Beautify messy JSON instantly Regex Tester Test regular expressions with real-time highlighting, capture groups a Password Generator Generate strong, secure passwords instantly. Customize length, upperca Text Case Converter Convert text to camelCase, snake_case, kebab-case, PascalCase, UPPER C