Report Tool or Give Us Suggestions

BlurHash Generator

Generate compact BlurHash placeholder strings from any image in your browser.

L ading . . .

BlurHash Generator turns any image you upload into a short BlurHash string—a compact representation of the image’s colors and layout that libraries can decode into a blurry placeholder before the full image loads. Encoding runs entirely in your browser; your file is not uploaded to a server.

What is BlurHash?

BlurHash is an algorithm developed by Wolt and described at blurha.sh. The hash is a short ASCII string (often 20–30 characters) that captures the dominant colors and gradients of an image. Mobile apps and websites use it to show a smooth, lightweight placeholder instead of an empty box or a generic gray skeleton while high-resolution assets download.

How to use this tool

  1. Choose an image file (JPEG, PNG, WebP, GIF, and other formats your browser can decode).
  2. Adjust Components X and Components Y if you need more detail in the hash (higher values produce longer strings and slightly sharper placeholders).
  3. Set Max edge (px) to control how much the image is downscaled before encoding—smaller values encode faster; larger values keep more detail in the hash.
  4. Click Encode to BlurHash and copy the string from the output field.

Tips for production

  • Typical defaults are 4×3 components; that balances string length and preview quality for photos.
  • Downscaling to 32–64 pixels on the longest edge is usually enough for a good placeholder.
  • Store the BlurHash next to your image URL in your CMS or API and decode it client-side with the same blurhash library (or a port in your mobile stack).

Frequently Asked Questions

Is my image uploaded to your servers?

No. The image is read with the File API and processed on your device using an HTML canvas. Nothing is sent to our backend for encoding.

What do Components X and Y mean?

They set the horizontal and vertical frequency resolution of the BlurHash. More components capture finer structure but make the encoded string longer. Values from 1 to 9 are valid; 4 and 3 are common defaults.

Why does the preview look pixelated?

The small canvas preview uses pixelated scaling so you can see how the decoded placeholder will look when stretched on a page. In a real app you decode at a small size and scale up with CSS for the same effect.

Can I decode BlurHash back to the original image?

No. BlurHash only stores a low-frequency approximation for placeholders. It cannot recover the original pixels or sharp detail.

Which image formats are supported?

Any raster format the browser can draw to a canvas—commonly PNG, JPEG, WebP, and GIF. SVG or exotic codecs may work depending on browser support.