Base64 Encode and Decode

Encode and decode text or files, including image data URLs.

No external services
Built by Derar Sattouf

Base64

Text

Encoded and decoded

EncodedSGVsbG8gZnJvbSBEZXZlbG9wZXIgVG9vbHM=
Decoded from current input�e���7�zZ)z��[

File

Drop a file

What is the Base64 Encoder/Decoder?

The Base64 tool converts text and files to Base64 and decodes Base64 strings back to their original form, right in your browser. It handles UTF-8 text, binary files and image data URLs, so you can embed images in CSS or HTML, inspect API payloads, or debug encoded headers without installing anything.

How to use it

  1. Choose Encode or Decode.
  2. Paste text, or pick a file to encode its bytes.
  3. Copy the Base64 output, or preview a decoded image data URL.

Features

  • UTF-8 safe text encoding and decoding
  • Encode any file, including images, to Base64
  • Image data URL preview
  • One-click copy
  • Runs locally with no upload

Frequently asked questions

Is my data sent to a server?

No. The tool runs entirely in your browser with JavaScript. Your data never leaves your device, nothing is logged, and it keeps working offline once the page has loaded.

What is Base64 used for?

Base64 turns binary data into plain ASCII text so it can travel through systems built for text, such as JSON APIs, email (MIME), HTTP headers like Basic Auth, and data URLs that embed images directly in HTML or CSS.

Is Base64 encryption?

No. Base64 is an encoding, not encryption. Anyone can decode it, so never use it to protect passwords or secrets. It also makes data about 33% larger.

How do I convert an image to a Base64 data URL?

Choose Encode, select the image file, and the tool produces the Base64 string. Prefix it with the image's MIME type, for example data:image/png;base64, to use it in an img src or CSS background.

Related tools

See all 26 developer tools

Last updated: October 2026 · Built by Derar Sattouf