ST

SnapTool.top

Loading...

🔐

Base64 Encoder / Decoder

Base64 encoding and decoding tool

Text
Result

About Base64 Encoder / Decoder

Free online Base64 tool that encodes text to Base64 and decodes back to readable text. Fully supports Unicode and keyboard shortcuts. For structured payloads quickly inspect with the JSON Formatter; for URL‑safe transport use the URL Encoder/Decoder.

Common scenarios include crafting data: URLs for images/fonts, embedding small assets, and safely carrying binary data over text‑only channels. If you work with other bases, try the BaseX Encoder/Decoder; for time‑related tokens, see the Timestamp Converter.

Common Use Cases

  • Safely transfer binary over text protocols
  • Create data URLs for images or fonts
  • Inspect Base64 payloads from APIs
  • Store small blobs in config or local storage

How It Works

  • Handles Unicode via TextEncoder/TextDecoder
  • Supports both encode and decode
  • Warns when input is not valid Base64
  • One‑click copy of results

FAQ

Is binary supported?

Yes. Files or binary buffers need to be represented as Base64 strings first. You can paste Base64 produced by dev‑tools or APIs and verify it here, then pretty‑print the decoded JSON with the JSON Formatter.

Will whitespace break decoding?

Whitespace and newlines are ignored during decoding, which is convenient for multi-line payloads copied from logs or emails.

Is data sent to server?

No. All encoding/decoding runs locally in your browser — nothing is uploaded, which is ideal for sensitive payloads.

Can I encode files?

You can paste Base64 strings generated elsewhere. If you need to convert images, use external converters; once you have Base64, validate it here.