Base64 Converter

Encode text to Base64 or decode Base64 back to text with full UTF-8 support — processed locally, safe for tokens and API keys in payloads.

Developer Tools Runs in your browser · no upload

Reviewed 17 November 2026 · Free · No account needed

ExecutionYour browserInput never leaves your tab
File retentionNoneNothing is stored
AccountNot requiredNo sign-up, no paywall
PriceFreeNo trial, no usage cap on the tool itself

How to use

  1. Choose Encode or Decode.
  2. Paste the text (or Base64) into the input box.
  3. The output updates live; use Copy to take the result.

Example

Input: Hello, world!

Output: SGVsbG8sIHdvcmxkIQ==

How it works

Encoding converts text to UTF-8 bytes and then to Base64 (every 3 bytes become 4 characters). Decoding reverses the process; invalid Base64 is rejected with an error.

Encoding: text → UTF-8 bytes → Base64 (every 3 bytes become 4 characters). Decoding reverses the process.

Worked example

“Hello, world!” encodes to SGVsbG8sIHdvcmxkIQ==.

Edge cases to know

  • Decode accepts only valid standard Base64 (length a multiple of 4; A–Z, a–z, 0–9, +, / and =).
  • Output is UTF-8 decoded text only — binary files are not supported.
  • This is standard Base64, not URL-safe Base64: − and _ are not accepted.

Limits & compatibility

  • Decode accepts only valid Base64 (length multiple of 4, A–Z a–z 0–9 + / =); errors state what went wrong.
  • Output is UTF-8 decoded — binary files are not supported, text only.
  • This is standard Base64, not URL-safe Base64 (- and _ are not accepted).

Privacy

Encoding and decoding happen locally in your browser. Encoded strings — including any tokens — are never sent to a server.

Related tools

FAQ

Questions about Base64 Converter

What is Base64 encoding?

Encoding converts text to UTF-8 bytes and then to Base64, where every 3 bytes become 4 characters. Decoding reverses the process. It is an encoding, not encryption — anyone can decode it.

Why does decoding fail with an error?

Decode accepts only valid standard Base64: length a multiple of 4, using A–Z, a–z, 0–9, + / and =. The error message states what went wrong instead of failing silently.

Can I encode a file with this tool?

No — this tool handles text only. Binary files are not supported; the output is UTF-8 decoded text.

Is this URL-safe Base64?

No. This is standard Base64: the URL-safe characters − and _ are not accepted. If your input uses them, it is URL-safe Base64, which needs a different decoder.