Skip to content
Filemint

BlurHash generator

Turn images into short BlurHash strings for smooth loading placeholders — with copy-ready code for your framework.

  • No upload
  • No sign-up
  • No watermark
  • Free

How to use the BlurHash Generator

  1. Step 1

    Add images

    Drop one or many images. Each gets a BlurHash within a moment.

  2. Step 2

    Tune the detail

    Leave Follow image shape on and set Detail, or set horizontal and vertical components yourself.

  3. Step 3

    Copy a snippet

    Copy the hash, or pick CSS, React, Next.js or JavaScript for ready-to-paste code.

  4. Step 4

    Export all

    Download a JSON file with every image’s hash, size, average colour and tiny placeholder PNG.

Preview the placeholder

See the decoded blur next to your image, with a Punch control for contrast.

Code for your stack

Plain CSS with an inline placeholder, react-blurhash, Next.js blurDataURL or vanilla JavaScript.

Batch friendly

Hash a whole folder and copy or download everything as JSON.

What a BlurHash is

BlurHash encodes the broad colours and light of an image into a string of around 20–30 characters. Your page shows a soft blurred version from that string while the real image loads, instead of an empty box. Because the hash is tiny, it can sit in your database or API response next to the image URL.

Filemint encodes from a small copy of each image (BlurHash keeps only low frequencies, so detail would be wasted) and decodes the result to show you exactly what visitors will see.

Choosing components

Components control how much structure survives. 4 × 3 is the common choice for landscape photos, and Follow image shape mirrors that for portraits. More components keep more shapes but make a longer hash; values above 6 rarely help.

  • CSS inlines a tiny PNG of the decoded hash — no JavaScript needed.
  • React uses the react-blurhash component.
  • Next.js fills placeholder="blur" with a blurDataURL.
  • JavaScript decodes the hash onto a canvas with the blurhash package.

Frequently asked questions

How long is a BlurHash?

It depends on the components: 4 × 3 gives 28 characters. Each extra component adds two characters.

Can I use it without JavaScript?

Yes. The CSS snippet embeds a tiny decoded PNG as a background image, so no decoding is needed at runtime.

What does Punch do?

It increases or reduces the contrast of the decoded placeholder. It doesn’t change the hash, only how it’s rendered.

Are my images uploaded?

No. Hashes are computed in your browser from your local files.

All Image tools