All tools

Tool

Base64 Encoder / Decoder

Convert text and files to and from Base64, instantly, in your browser.

Paste text to encode

Input

Base64

Processed entirely in your browser, nothing is uploaded anywhere.

How to encode or decode Base64

Encode or decode Base64 for text and files entirely in your browser, nothing is uploaded.

  1. Pick a mode. Choose Text or File, then Encode or Decode.
  2. Add your input. Paste text, or drop a file and click Encode. Conversion only runs when you ask.
  3. Check the output. Review the encoded or decoded result along with the size details.
  4. Copy or download. Copy text output, or download decoded bytes back to a file.

Base64 encode and decode in your browser

Base64 turns binary or text into an ASCII-safe string for JSON fields, data URLs, email attachments, and config files. Tokitool encodes and decodes in the tab: text mode for UTF-8 snippets, file mode when you need Base64 to downloadable bytes without a server round-trip.

Encoding is not encryption

Anyone can decode Base64. Do not treat it as a way to hide passwords or personal documents. If you need confidentiality, use real encryption. This tool is for transport and embedding formats, not secrecy.

When decode fails

  • Missing = padding at the end of the string
  • URL-safe alphabet (- / _) pasted into a standard Base64 decoder
  • Truncated copy/paste from a log or email wrap
  • Extra quotes or data:…;base64, prefix left on the value

Strip the data-URL prefix if present, paste the full standard alphabet string, and try again. Pair with the JSON Formatter when a Base64 field sits inside JSON. Privacy model: private browser tools.

Base64 encoder / decoder FAQ

Text vs file mode

Text mode encodes and decodes UTF-8 strings for APIs and config snippets. File mode turns uploads into Base64 (or downloads decoded bytes) when you need Base64-to-file without a server.

URL-safe alphabet

Some transports replace + and / and drop padding. This tool sticks to standard Base64 so results match common libraries; adjust for URL-safe variants only if your API requires them.

Privacy

Encoding happens locally. Useful for tokens, keys, or documents you should not paste into a third-party online converter.

Is Base64 encryption?

No. Base64 is encoding, not encryption. Anyone can decode it. Use proper crypto if you need confidentiality.

Why did decode fail?

Check for missing padding, URL-safe characters, or truncated strings. Paste the full standard Base64 value and try again.