Skip to content
OneTooling

Base64 Encoder & Decoder

Encode text or any file to Base64 and decode Base64 back, with URL-safe and data URL options. Handles emoji and accents. Runs in your browser.

Runs in your browser · nothing uploaded
Mode
48 B

Why is there an ad? This tool is free and runs on your device. One small ad pays for hosting and new tools. No pop-ups, no autoplay, never inside the tool. How we make money

How to encode or decode Base64

  1. Choose Encode or Decode.
  2. Type or paste text, or open a file to encode it.
  3. Copy the result or download it.

Text is encoded as UTF-8, so accented letters and emoji survive the round trip exactly.

Questions

Is Base64 encryption?

No. Base64 only turns data into plain letters and digits so it can travel through text-only systems such as email or JSON. Anyone can decode it, so never use it to hide passwords.

How do I turn an image into a data URL?

Keep "Encode" selected, press Open file, choose the image, and turn on "As data: URL". The result can be pasted into HTML or CSS as an image source.

What is URL-safe Base64?

It replaces + and / with - and _ and drops the = padding, so the result can sit in a URL or file name without being changed. JWTs use this form.

What if the decoded result is not text?

The tool detects it and offers the data as a file download, naming it by type when it recognizes PNG, JPEG, GIF, PDF, or ZIP data.

Credits

Built by OneTooling using standard browser features. No third-party code runs on your data.