Change Png To Rgb Values
Upload a PNG image, click any pixel to inspect its RGB color values. Extract a palette of unique colors and copy values easily.
Picked Color
Color Palette
Unique Colors (sampled)
Drop a PNG and hover any pixel to read its exact RGB, HEX, and alpha values. Click to lock a color, or extract the full palette of unique colors in one tap. And everything runs in your browser. Nothing gets uploaded.
How It Works
Your browser draws the image onto an invisible HTML5 Canvas element. When you move your cursor, the tool calls getImageData() on that exact pixel coordinate and pulls the red, green, blue, and alpha values. No math tricks — it is reading the raw data directly from memory.
Examples
Matching a Brand Logo Color
A client sends over a PNG logo and says "use the exact blue." No color spec document, no style guide. Just the image.
Company logo PNG file
Click on the blue area
R: 37 G: 99 B: 235
HEX: #2563EB
Alpha: 255
Checking Transparency on a Game Sprite
Your sprite's background should be fully transparent, but something looks off in the engine. Time to check the alpha channel pixel by pixel.
character_idle.png
Click on "transparent" area
R: 255 G: 255 B: 255
Alpha: 12 (not fully transparent!)
Expected Alpha: 0
Pulling a Full Palette from a UI Mockup
A designer hands off a flat PNG mockup with no design file. You need every color used so you can build the CSS variables.
dashboard_mockup.png
Click "Extract Palette"
#1E293B (dark slate)
#3B82F6 (primary blue)
#F8FAFC (background)
#EF4444 (error red)
#10B981 (success green)
Who Uses This
Grabbing exact hex codes from mockup PNGs to match CSS to the pixel.
Verifying exported colors match the original design file after compression.
Debugging sprite alpha channels and checking pixel-level color data in texture atlases.
Extracting color values from chart screenshots when the original data source isn't available.
Common Mistakes
JPEG compression shifts colors slightly. If you need exact values, always work from the PNG source. A "white" pixel in a JPEG might read as rgb(254, 253, 255) instead of a clean 255, 255, 255.
A pixel with RGB 0, 0, 0 and alpha 50 is not black — it's a faint gray when composited. Check the alpha value before assuming the RGB numbers are off.
If your browser is zoomed in, you might click between pixels and get an interpolated color that doesn't actually exist in the image. Zoom to 100% for accurate sampling.
Technical Details
- Processing: 100% client-side — your image never leaves the browser
- Browser Support: Chrome, Firefox, Safari, Edge
- Color Formats: RGB (0-255), HEX, and Alpha channel
- Image Formats: PNG preferred; also accepts JPEG, WebP, GIF, BMP
- Max Size: Limited by device memory only — no server-side cap
Frequently Asked Questions
How do I get RGB values from a PNG image?
Upload your PNG to this tool and hover your mouse over any pixel. The RGB values show up instantly in a tooltip. Click to lock a specific pixel and copy the values. No software to install — it all runs right in your browser.
What's the difference between RGB and HEX color values?
Same color, different format. RGB uses three numbers from 0 to 255 (like 37, 99, 235), while HEX squishes those into a six-character code (#2563EB). CSS accepts both. HEX is shorter to type; RGB is easier to read and tweak by hand.
Can I extract colors from a JPEG or WebP, not just PNG?
Yes. The browser's Canvas API handles most raster image formats, so JPEG, WebP, GIF, and BMP all work fine here. Just keep in mind that lossy formats like JPEG can shift colors slightly during compression, so the values you see may not match the original perfectly.
Does this tool upload my image to a server?
No. Your image stays on your device the entire time. The tool uses the HTML5 Canvas API to read pixel data locally in your browser. Nothing gets sent to any server, and the page even works offline after it first loads.
Why does the same pixel show different RGB values in different tools?
Color management is usually the culprit. Some tools apply ICC color profiles while others don't, and that changes how raw pixel data gets interpreted. Browser-based tools like this one read the canvas-rendered values, which already have the browser's color management applied. For pixel-perfect work, make sure you're comparing values from tools with the same color profile handling.