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.
No tools match “”.
You can still browse all 14 tools below, or try a different keyword.
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.
- Text to Base64Turn plain text, sentences or code into a Base64 string. UTF-8 supported, output ready to copy into JSON, HTML or an API request. Emoji supported.
- Base64 to TextPaste a Base64 string and read the plain text behind it. Handles UTF-8, emoji and multi-line input, and flags invalid characters. Emoji input is supported.
- Base64 DecoderDecode Base64 strings back to text, images and PDF files. Handles data URI strings and invalid characters, and shows what went wrong.
- Base64 EncoderEncode any text, image or file to Base64 online. Paste a string or upload a file and get a Base64 string, with padding and URL-safe notes.
- Base64 ConverterConvert text to Base64 and back on one screen. Both directions update as you type; output on one line or wrapped. Handles UTF-8 input.
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.
- Base64 to ImagePaste a Base64 string or data URI and get the image back as PNG or JPG. Preview it in the browser and download it with one click. Detects the image format.
- Base64 to PDFDecode a Base64 string into a PDF file and open it in your browser. Works with data:application/pdf;base64 strings and raw Base64.
- Image to Base64 ConverterConvert PNG, JPG, GIF and SVG images to Base64 strings and data URI code. Upload or drop a file and copy the output in one click. Drag and drop supported.
- PDF to Base64 ConverterConvert a PDF to Base64 or a data URI string for embedding in HTML or email. Pick a file, copy the encoded output, no signup. Shows size and MIME type.
- File to Base64 ConverterEncode any file such as PDF, ZIP, DOCX or audio into a Base64 string. Size limits, MIME type and how to use the output, explained.
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.
- Base32 DecoderDecode Base32 strings (RFC 4648) back to plain text. Shows the Base32 alphabet, padding rules and why your input may be invalid. Padding is optional.
- Base32 EncoderEncode text to Base32 with the RFC 4648 alphabet. Choose padding on or off, compare Base32 with Base64, and copy the output. Choose upper or lower case.
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.
- MD5 Hash GeneratorCreate an MD5 hash of 32 hex characters from text or a file. Where MD5 is safe to use, and why it is not for storing passwords. Works on text and files.
- SHA256 GeneratorGenerate a SHA-256 hash from any text or file, right in the browser. See a sample digest and how SHA-256 differs from MD5. Works on text and files alike.
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.