Your files stay on your device

# BlurHash encoder and decoder

Make a short placeholder code from an image, and preview the blur it gives.
From an imageFrom a hash

Drop an image to hash

PNG, JPG, WebP, AVIF and more · up to 50 MB · stays on your device
Choose an imageor pasteNo file handy? Try a sample

## Component counts and string length

A BlurHash has a fixed length for each pair of component counts. For x by y components, the length is 6 + 2 * (x * y - 1) characters. A 1 by 1 hash is 6 characters, a 4 by 3 hash is 28, and a 9 by 9 hash is 166. More components record more color variation, but the string grows quickly.

## Why transparent pixels turn white

BlurHash has no alpha channel. Before encoding, transparent pixels are blended onto white, so the hash matches the blur you would see on a white page. The image is also sampled down to 32 pixels on its long edge first. The hash describes soft color shapes, so full resolution adds nothing it can use.

## More image tools

- [LQIP placeholder](/images/placeholder)
- [Color palette from image](/images/palette)
- [ThumbHash placeholder](/images/thumbhash)
[All image tools](/images)

Was this tool useful?
YesNo

---

Canonical HTML: https://nutter.tools/images/blurhash
Markdown version: https://nutter.tools/images/blurhash.md
Plain-text version: https://nutter.tools/images/blurhash.txt
Agent index: https://nutter.tools/llms.txt

