← All Tools

🔐 Base64 Encode / Decode

Encode text to Base64 or decode Base64 strings back to plain UTF-8 text with warnings, reports, and copyable JSON summaries.

Sensitive data warning

  • Base64 is encoding, not encryption. Decoded values may reveal secrets, credentials, tokens, or personal data.
  • Avoid pasting production secrets or regulated information, even into browser-local tools.

Base64 checks

  • Encodes and decodes UTF-8 text, including non-ASCII characters.
  • Supports URL-safe Base64 output and URL-safe Base64 decoding.
  • Reports typed errors for empty input, invalid Base64, and non-UTF-8 decoded bytes.
  • Warns on secret-like input because Base64 is reversible encoding, not encryption.
Runs in your browser

Base64 encoding and decoding run locally in your browser. Shared links only include input when you explicitly opt in.

What this tool does

Base64 Encoder and Decoder converts plain text to Base64 and decodes Base64 back to readable UTF-8 text where possible.

Why it is useful

It is useful for debugging API payloads, data URLs, headers, configuration values, and encoded snippets.

How it works

The browser converts UTF-8 bytes to Base64 or decodes valid Base64 bytes back into UTF-8 text.

Best input

Use valid Base64 text for decoding and ordinary text for encoding.

Debugging tip

If decoding fails, check for missing padding, URL-safe Base64 variants, binary data, or extra whitespace.

Privacy note

Encoding and decoding happen locally in your browser.

Important limitation

Base64 is encoding, not encryption. Anyone can decode it.

Quick answers

Is Base64 secure?

No. It only changes representation and should not be used to hide secrets.

Can it decode binary files?

This text-focused tool is best for strings and small snippets, not large binary workflows.

API examples

Call the same deterministic core through Utilito’s compact API router. Send only data you intentionally submit to the server-side endpoint.

Try in API playground →Schema →
Encode Base64 with curl
curl
curl -X POST https://utilito.dev/api/run \
  -H "Content-Type: application/json" \
  -d '{"tool_id":"base64","input":{"input":"hello","action":"encode"}}'
Encode from JavaScript
javascript
const res = await fetch('https://utilito.dev/api/run', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ tool_id: 'base64', input: { input: 'hello', action: 'encode' } })
});
const data = await res.json();
console.log(data.result.output);
Encode from Python
python
import requests
payload = {"tool_id": "base64", "input": {"input": "hello", "action": "encode"}}
print(requests.post("https://utilito.dev/api/run", json=payload).json()["result"]["output"])

Common Use Cases

Decode Base64 API responses

Inspect Base64-encoded data returned from APIs, headers, uploads, and attachments.

Prepare Basic Auth test strings

Generate Base64 strings for local HTTP Basic Auth experiments without sending data to a server.

Debug URL-safe tokens

Decode URL-safe Base64 snippets while remembering that encoded tokens may still be sensitive.

Related Tools

📐Unit Converter🕐Unix Timestamp Converter🔢Number Base Converter📊CSV to JSON Converter🔁JSON to CSV ConverterCSV to Markdown Table
View all in Convert →