BlurHash Generator
Encode any image into a compact BlurHash string for lightweight placeholders, and decode BlurHash codes back into a live preview. Free, fast, and 100% client-side.
Loading tool...
What is BlurHash Generator?
The BlurHash Generator encodes any image into a compact BlurHash string β a tiny base83 representation of the imageβs dominant colors and gradients β and decodes BlurHash strings back into a smooth, blurred preview rendered live on a canvas. BlurHash is the industry-standard placeholder format (created by Wolt) used to show an instant visual hint of an image while the full file downloads, dramatically improving perceived load performance.
Key Benefits
- Show instant image placeholders instead of blank boxes or spinners
- Hash strings are tiny (20-30 chars) β trivial to store in a database or CMS field
- Compatible with the official blurhash libraries for web, iOS, and Android
- Adjustable detail level lets you trade quality for string length
- Fully client-side β images never leave your browser
Common Use Cases
- β’Generating blurDataURL-style placeholders for a Next.js or React image gallery
- β’Storing compact image previews in an API or database response
- β’Previewing how an existing BlurHash string will look before shipping it
- β’Tuning the component count for the best quality-to-length ratio for your layout
- β’Learning how BlurHash encoding works by encoding and comparing hashes
How to Use the BlurHash Generator
- Upload an Image: Pick any JPG, PNG, or WebP image. It is processed entirely in your browser β nothing is uploaded to a server.
- Set the Component Count: Choose 1-9 X components. More components capture finer detail but produce a longer hash string; 4 is a good default.
- Copy the BlurHash String: The encoded hash appears instantly with its length in characters. Copy it into your app, CMS, or database field.
- Decode and Preview: Paste any BlurHash string (yours or a sample) into the decoder field to render the blurred placeholder preview on a live canvas.
Key Features
- Encode any uploaded image into a compact BlurHash string in one click
- Decode BlurHash codes back into a live canvas preview instantly
- Adjustable component count (1-9) to balance quality against string length
- Copy-ready hash with length readout and original image side-by-side comparison
- Pure client-side canvas processing β no uploads, no APIs, works offline
- Bilingual EN/TH interface with sample hashes to try instantly