All tools

Base64

Encode / Decode

Encode and decode Base64 strings

A JWT segment, a data URI, or an API field that looks like meaningless gibberish is very often just Base64, and this tool decodes it back to something readable in a click, or encodes plain text the other direction for embedding in JSON or config files. It supports both the standard alphabet and URL-safe Base64 (using `-`/`_` instead of `+`/`/`), which matters for tokens that get passed around in URLs. It's worth remembering this is an encoding, not encryption: anyone can reverse it instantly, so it should never be treated as a way to protect sensitive data. For a similar but denser alphabet used in different contexts like TOTP secrets, see Base32 instead.

base64encodedecode

How to use Base64

  • 1.Paste plain text and switch to "encode" mode to get its Base64 representation for embedding in URLs, JSON, or config files.
  • 2.Paste a Base64 string and switch to "decode" mode to recover the original text — useful for inspecting JWT segments or data URIs.
  • 3.Use it to quickly check what's inside a `data:` URI or an API response field that looks like gibberish.

Frequently asked questions

Is Base64 encoding the same as encryption?
No. Base64 is a reversible encoding, not encryption — anyone can decode it instantly. Never use it to protect sensitive data.
Does this support URL-safe Base64?
Yes, both standard and URL-safe (base64url, using `-`/`_` instead of `+`/`/`) variants are supported.
Can it handle binary files, not just text?
The browser tool works on text/string input. For binary files (images, PDFs), use the SDK or REST API, which accept byte buffers.
Why does decoding sometimes fail?
Base64 strings must have correct padding (`=`) and only contain valid alphabet characters — copy-paste errors or truncated strings are the most common cause of decode failures.

Use via API, SDK, or MCP

cURL# Free: 1,000 req/day · Pro: 10,000 req/day
curl -X POST https://api.utilix.tech/v1/tools/base64 \
  -H "Authorization: Bearer utx_live_..." \
  -H "Content-Type: application/json" \
  -d '{"input":"hello world","mode":"encode"}'

Get an API key from your dashboard · Full API docs →