Generators
Base64 Encode / Decode
Encode or decode text with Base64 in one click.
Encode any text or string to Base64 — or decode Base64 back to plain text — instantly in your browser. Useful for developers working with data URIs, JWT tokens, basic-auth headers, and email attachments.
Use the tool
What this tool does
Base64 is a binary-to-text encoding scheme that represents arbitrary bytes using 64 printable ASCII characters. It’s used wherever binary data needs to travel through a text-only channel — JSON payloads, URLs, email MIME parts, and more.
Why people use it
- Embed small images directly in CSS or HTML as data URIs.
- Decode JWT payloads to inspect their contents during debugging.
- Construct HTTP Basic auth headers (base64 of ‘user:pass’).
- Read or write email MIME parts.
- Inspect API tokens and webhook payloads quickly.
Step-by-step guide
- Open the Base64 Encode / Decode tool.
- Paste your input into the text area.
- Click ‘Encode’ to convert text to Base64, or ‘Decode’ to reverse it.
- Copy the result with one click.
Real examples
Inspecting a JWT
A backend developer pastes the middle segment of a JWT into the decoder to read the claims while troubleshooting an auth flow.
Embedding a tiny SVG icon in CSS
A frontend developer encodes an SVG to Base64 and uses it as a background-image data URI to skip an HTTP request.
Common use cases
- JWT debugging
- Data URI generation
- Basic-auth headers
- Webhook payload inspection
- Email MIME work
Frequently asked questions
Is this safe for sensitive tokens?
Yes. Encoding/decoding happens in your browser only. Nothing is sent to our servers. Still, never paste production secrets into any third-party tool you don’t fully trust.
Does it support URL-safe Base64?
Standard Base64 is supported. URL-safe variant (-_ instead of +/) is on the roadmap.
