Your files stay on your device

BlurHash encoder and decoder

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

Drop an image to hash

PNG, JPG, WebP, AVIF and more · up to 50 MB · stays on your device

or paste

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.

Was this tool useful?