Convert PNG to Hex
Sample pixels from a PNG and display their hex color codes.
Drop an image here
PNG, JPG, WebP, GIF or BMP. You can also paste an image.
No result yet
Options
How to use
- 1
Upload a PNG.
- 2
Set how many pixel samples to show.
- 3
Click Download to save the hex color grid.
Example
Before640 × 427

After1000 × 280

Frequently asked questions
Are pixels sampled randomly?
No. They are sampled in a regular grid across the image.
About this tool
Convert PNG to Hex samples a grid of pixels from your image and generates a visual map of their hex color codes. Each cell shows the color swatch and its hex value. All processing runs locally in your browser. Your image is never uploaded to a server.