Handy Web Tools

Free browser tools with no sign-up

FREE TOOL

Base64 Encoder / Decoder

Encode text, images, and files as Base64 or Data URIs, then decode and download files locally.

Loading tool…

About Base64 Encoder / Decoder

Encode UTF-8 text, images, and files as Base64 or Data URIs. Decode Base64, Base64URL, and Data URIs into text or binary downloads, with image previews. Processing stays in your browser.

How to use

  1. 1.Choose encode or decode and provide text or a file.
  2. 2.Select Base64URL, padding, or Data URI options as needed.
  3. 3.Copy the result or download the decoded file.

Useful for

  • Creating image Data URIs for web projects
  • Encoding API and JSON text
  • Restoring Base64 files and images
  • Inspecting Base64URL data

Verified examples and scope

These examples describe reproducible behavior in this tool. They are not a guarantee for inputs outside the documented scope.

Input or settingExpected resultCondition
HelloSGVsbG8=This is standard Base64 for the UTF-8 text.
SGVsbG8HelloMissing padding is restored before decoding.

Known limitations

  • Base64 is an encoding, not encryption, and can be reversed.
  • Files for encoding are limited to 5 MB, and Base64 output is usually larger than its source.

If the result is unexpected

  • Non-UTF-8 decoded data cannot be shown as text, but it can be downloaded as a binary file.

How it works

Text is converted with TextEncoder; Base64URL characters and omitted padding are normalized when decoding.

The tool supports standard Base64 and the URL-safe Base64URL representation.

Text, files, Data URIs, and decoded contents are processed in the browser.

Input examples

  • Hello → SGVsbG8=
  • Image file → data:image/png;base64,...
  • URL-safe Base64 used in API data

Notes and limitations

  • Base64 is not encryption and can be decoded by anyone. Do not use it to protect secrets.
  • Files are limited to 5 MB. Data URIs are larger than the source file and are not suitable for large assets.

Frequently asked questions

Does it support Unicode and emoji?

Yes. Text is encoded as UTF-8, so Unicode characters, including emoji and non-English writing systems, are supported.

Can it decode Base64URL?

Yes. It recognizes the URL-safe alphabet using hyphens and underscores and accepts omitted padding.

Can it encode images and files?

Yes. Files up to 5 MB can be encoded as raw Base64 or a Data URI with the MIME type. Images also show a preview.

Can I restore a file from Base64?

Yes. A Data URI preserves its MIME type, while plain Base64 can be downloaded as a binary file.

Is Base64 encryption?

No. Base64 changes the representation of data and can be decoded by anyone; it does not provide confidentiality.

Is Base64 encryption?

No. Base64 changes how data is represented and does not protect confidential information.

Is my input sent to a server?

No. Encoding and decoding run locally in your browser, and inputs and results are not sent to our server.