Busyyy

Base64 Encoder/Decoder

Encode text or files to Base64 and decode Base64 back to text

Input size: 0 bytes
Output size: 0 bytes

About this tool

This Base64 tool encodes and decodes text or files using the Base64 standard. Base64 represents binary data as printable ASCII characters, making it safe to carry inside JSON payloads, URLs, CSS, HTML data URIs, and email bodies. Everything runs locally in your browser.

How to use

  1. Choose whether to encode or decode with the mode toggle.
  2. Paste text or drop a file into the input area.
  3. Enable URL-safe mode if you need to embed the output inside a URL parameter.
  4. Copy the result with one click or download it as a file.
  5. Use the swap button to feed the output back into the input and re-encode or re-decode.

Common use cases

  • Converting an image into a data URI so you can embed it directly in CSS or HTML.
  • Inspecting a JWT payload by decoding its middle segment.
  • Preparing binary content to be sent inside a JSON API body.
  • Encoding credentials for the HTTP Basic authorization header.
  • Turning a small PDF or SVG into a copyable string for a quick test.

Frequently asked questions

Is Base64 the same as encryption?

No. Base64 is encoding, not encryption. Anyone can decode it. Never use it to hide secrets.

What is URL-safe Base64?

A variant that replaces + and / with - and _ so the string can be placed inside a URL without escaping.

Will the tool accept large files?

It works in your browser, so very large files will be slow or run out of memory. For anything over a few megabytes, use a native tool.

Does Base64 make my data smaller?

No. Base64 makes the output about 33% larger than the input. It is for transport safety, not compression.