14 free Base64, Base32 & hash tools

All Base64 tools: encode, decode, convert & hash

Encode text to Base64, decode Base64 to text, or convert an image to Base64, file to Base64 and Base64 to PDF. Every Base64 encoder, decoder and converter below runs locally in your browser, so nothing you paste or upload leaves your device.

5 tools

Base64 encode, decode & convert

Base64 encoder, decoder and converter for text and URLs. Turn text to Base64, decode Base64 back to text, or switch direction in the converter — with URL-safe output, padding, line wrap and charset options.

5 tools

Image, file & PDF to Base64

Convert image to Base64 (PNG, JPG, SVG, GIF, WebP), file to Base64 or PDF to Base64, and decode Base64 back into a downloadable image or PDF data URI. Every file stays in your browser.

2 tools

Base32 encode & decode

Base32 encoder and decoder using the RFC 4648 alphabet. Base32 output is case-insensitive, so it survives labels, secrets and human transcription.

2 tools

SHA256 & MD5 hash generators

SHA256 generator and MD5 hash generator for text and files. Both return fixed-length hex digests for checksums and integrity checks, and neither can be reversed.

What you can do with these Base64 tools

The collection covers the whole round trip. Use the Base64 encoder to turn text or a URL into a safe string, and the Base64 decoder to turn a value back into readable text, an image or a PDF. Image and file pages convert PNG, JPG, SVG, WebP and PDF into data URIs, and rebuild a downloadable file from one.

Base32 and hash pages cover the neighbouring formats. Base32 uses A–Z and 2–7 for case-insensitive systems, while the SHA-256 and MD5 generators produce fixed-length digests that cannot be reversed. Each page shares the same workbench, with sample data, charset, padding and line-wrap options, so results stay comparable between tools.

Base64 terms explained

Base64
A binary-to-text encoding: every three bytes become four printable characters, so the output is about 33% larger and safe for text-only channels. See Base64 encode.
Padding (=)
One or two equals signs at the end keep the encoded length a multiple of four. Strict parsers require them; many decoders fill them in automatically.
URL-safe Base64
Replaces + with - and / with _ and often drops padding, so the value survives query strings, JWT segments and file names. See URL-safe decoding.
Data URI
A MIME prefix plus a Base64 payload, such as data:image/png;base64,…, used to embed images and files in HTML or CSS. Build one with Image to Base64.
Charset
The byte mapping used before encoding. UTF-8 covers every Unicode character; legacy charsets such as ISO-8859-1 or Shift_JIS are only needed when the receiver expects them.
Base32 vs hash
Base32 is an encoding and can be reversed, with longer output and a case-insensitive alphabet. SHA-256 and MD5 are one-way hashes. Compare with Base32 encode and SHA256 generator.

FAQ

What is Base64?

Base64 is a binary-to-text encoding. It turns every three bytes into four printable characters, which makes data safe to paste into JSON, URLs, email and configuration files. It is reversible by anyone and is not encryption.

How do I encode or decode Base64?

Open the Base64 encoder to turn text into a Base64 string, or the Base64 decoder to turn a string back into text, an image or a PDF. Both tools update as you type and run entirely in your browser.

What is the difference between Base64 and Base32?

Base64 uses 64 characters including upper and lower case, so it is shorter but case sensitive. Base32 uses A–Z and 2–7 only, which survives case-insensitive systems and human transcription, at the cost of longer output.

What is a data URI?

A data URI embeds a file directly in a document, for example data:image/png;base64,… followed by the Base64 payload. The image and file tools on this page generate data URIs and can turn them back into a downloadable file.

Can I convert images, PDFs and other files?

Yes. Image to Base64 accepts PNG, JPG, SVG, GIF, WebP and BMP. File to Base64 handles any file up to 20 MB, and Base64 to PDF rebuilds a PDF from its encoded payload.

Are my files uploaded to a server?

No. Every page is a static file and all encoding, decoding and hashing happens in your browser. Nothing you paste or upload leaves your device.