Base64 Encoder / Decoder
Base64 encode or decode UTF-8 text for APIs, tokens, and debugging.
When to use this tool
- Debugging a data URL in a browser.
- Inspecting a base64-wrapped API payload.
- Encoding a small binary fixture for a test.
How it works
- Paste the text or base64 string.
- Pick encode or decode.
- Copy the result.
- For binary data, use a dedicated binary-safe helper instead.
Privacy: This tool runs entirely in your browser. Your input is not sent to our servers.
Output
Advertisement
Frequently asked questions
Does it handle UTF-8 correctly?
Yes. Encoding uses TextEncoder/TextDecoder so emoji and non-ASCII characters round-trip cleanly.
What is the difference between base64 and base64url?
Base64url replaces `+`/`/` with `-`/`_` and drops padding. Use the URL encoder/decoder tool for URL-safe base64.
Can I paste a data URL?
Strip the `data:type;base64,` prefix before decoding. The tool decodes raw base64, not full data URLs.