Hash Generator
Hash text or files with MD5 and SHA, then compare against a checksum.
Open Hash GeneratorConvert text to Base64 and back, turn any file into a data URI you can paste straight into
CSS or an img tag, or decode a Base64 blob back into a real downloadable file. Text
conversion is UTF-8 safe, so emoji, accented letters and Devanagari survive the round trip
intact — which is where the browser's raw btoa function falls over. When you
decode something, the tool reads its magic bytes to work out what it actually is, previews it if
it is an image, and names the download with the right extension. There is also a URL-safe
toggle for Base64 that has to travel inside a URL or a JWT.
Encoding and decoding both run in this tab.
Your encoded file appears here.
Preview
Runs fully in your browser. Nothing is uploaded.
data: prefix — and press Decode. Images preview immediately.Base64 turns arbitrary bytes into 64 safe printable characters, which lets binary data travel through systems built for text: email attachments, JSON payloads, data URIs in CSS, and the segments of a JWT. The cost is size. Three bytes become four characters, so encoded data is about 33 per cent larger than the original, plus padding.
That overhead is why inlining files as data URIs is a trade-off rather than an optimisation. A small icon or a decorative SVG inlined into CSS saves an HTTP request and is usually worth it. A 400 KB photograph becomes 533 KB of text that cannot be cached separately, blocks the stylesheet it sits in, and has to be re-downloaded with every change to that file. The useful rule of thumb is a few kilobytes.
The usual trap with Base64 in the browser is that btoa only handles characters
in the range 0 to 255, so any emoji or accented character throws an error. This tool encodes
your text to UTF-8 bytes first and then converts those bytes, which is what every other
language does and is why a round trip here returns exactly what you put in.
Two more things worth knowing. Base64 is encoding, not encryption — anyone can decode it, so it hides nothing and protects nothing. And the URL-safe variant exists because plus and slash have meanings inside a URL; it swaps them for hyphen and underscore and drops the equals padding, which is the form you will see in JWTs and in many APIs.
No. It is a reversible encoding with no key and no secret. Anyone who sees a Base64 string can decode it in seconds. Never use it to hide a password, a token or anything else that matters.
Because they call the browser's btoa function directly, and it only accepts characters up to code point 255. This tool encodes your text as UTF-8 bytes first, so emoji, accented letters and non-Latin scripts all round trip correctly.
Only small ones. Base64 adds about a third to the file size and the result cannot be cached separately from the file it sits in. Inlining a small icon or SVG saves a request and is usually worth it; inlining a photograph is not.
A variant that replaces + with - and / with _, and drops the = padding, so the string can appear in a URL, a filename or a JWT without escaping. Tick the box on the text tab to produce or read it.
It reads the first few bytes — the magic number — and matches them against known signatures for PNG, JPEG, GIF, WebP, PDF, ZIP and others. That is more reliable than trusting a MIME type stated in the data URI, which anyone can write incorrectly.
Hash text or files with MD5 and SHA, then compare against a checksum.
Open Hash GeneratorBeautify, minify and validate JSON with exact error line and column.
Open JSON FormatterSwitch text between upper, title, camel, snake and kebab case instantly.
Open Case ConverterGenerate every favicon size from one image and copy the HTML tags.
Open Favicon Generator