Base64 Converter

Encode and decode Base64 for text, files, URL-safe strings and images.

Works offline Native desktop macOS & Windows
Base64 Converter
What it does

Base64 turns up in auth headers, config values, email attachments and embedded images, and the data inside is often sensitive. The Base64 Converter in HackUtilities encodes and decodes text, files and URL-safe strings, and converts images to data URIs and back. Everything is done locally, so credentials and private files stay on your computer.

Text encode and decode

Encode UTF-8 text to Base64 or decode Base64 back to text, with input and output length shown.

File conversion

Encode a file to Base64, or paste Base64 and download it as a file. Files are limited to 5 MB in this tab.

URL-safe Base64

Encode with - and _ instead of + and /, and no = padding, as used in JWTs and URLs. Decoding adds the padding back.

Image data URIs

Drop a PNG, JPG, WebP, GIF, SVG, ICO or BMP to get a data URI, with copy buttons for the raw URI, a CSS background-image rule and an HTML img tag. Paste a data URI to preview and save the image.

Session history

The last 10 conversions are kept in a History tab until you close the app or clear them.

FAQ

Is Base64 encryption?

No. Base64 is an encoding that anyone can reverse, so it does not protect data. Treat a Base64 string as if it were the plain value.

How do I decode a URL-safe Base64 string?

Open the URL-Safe tab, keep URL-safe encoding enabled, paste the string and press decode. The tool converts - and _ back and adds any missing padding.

Pairs well with
All 46 tools →
Try Base64 Converter free for 14 days

No card, no account. Every tool included, bought once.

Download