Toolsly
PNGTXT

Colors from Image

Colors from Image is a free online image tool for changing PNG, JPG, JPEG, WEBP, GIF, BMP, and AVIF files into TXT files. Colors from Image accepts 6 MIME types, returns text/plain, includes 2 settings, and runs in your browser on the device.

Drop .png / .jpg / .jpeg / .webp / .gif / .bmp / .avif file here

or click to choose — or paste an image with ⌘V / Ctrl+V

Options

Key facts

Input
7 formats: PNG, JPG, JPEG, WEBP, GIF, BMP, and AVIF (image/png, image/jpeg, image/webp, image/gif, image/bmp, image/avif)
Output
TXT (text/plain)
Runtime
your browser on the device
Settings
2 controls: Number of colors and Transparent pixels
File mode
1 input file creates 1 output file
Cost
$0, no account required

How to use Colors from Image

  1. 1

    Open your PNG, JPG, JPEG, WEBP, GIF, BMP, AVIF file

    Drop your PNG, JPG, JPEG, WEBP, GIF, BMP, AVIF file onto the page, or click to browse and pick one from your device.

  2. 2

    Choose options

    Adjust the conversion options to suit your needs. Defaults work well for most inputs.

  3. 3

    Convert and download

    Click Convert. Your TXT file is ready to download in seconds.

Colors from Image details

First, Colors from Image reads PNG, JPG, JPEG, WEBP, GIF, BMP, and AVIF source files and prepares TXT output for the image workflow. Next, The visible controls are Number of colors and Transparent pixels. Additionally, Files and text stay in the browser session.

Drop in a photo or screenshot and get its dominant color palette. We downsample to ~400×400, ignore transparent pixels, run median-cut quantization (via gifenc), then sort by pixel frequency. Each color is reported in hex, RGB and HSL with the share of the image it covers. Useful for picking brand colors from a mood board, sampling a hero image for a theme, or generating consistent design tokens from photography. Runs entirely in your browser; your image never leaves your device.

Common searches

  • colors from image
  • color picker from image
  • color palette from image
  • image color extractor
  • dominant colors extractor
  • extract colors from photo

Tools that work with the same formats — most users open one of these next.

Frequently asked

What is Colors from Image?

Colors from Image is a free online image tool for changing PNG, JPG, JPEG, WEBP, GIF, BMP, and AVIF files into TXT files. Colors from Image accepts 6 MIME types, returns text/plain, includes 2 settings, and runs in your browser on the device.

What files does Colors from Image accept and create?

Colors from Image accepts PNG, JPG, JPEG, WEBP, GIF, BMP, AVIF files (image/png, image/jpeg, image/webp, image/gif, image/bmp, image/avif) and creates TXT files (text/plain). The page includes 2 settings: Number of colors and Transparent pixels.

Do my files and data stay private?

Yes. Colors from Image runs entirely in your browser using your device's CPU. Files and text are never uploaded to our servers, so your data stays private.

How do I use Colors from Image?

Open Colors from Image, drop in your PNG, JPG, JPEG, WEBP, GIF, BMP, AVIF file, choose any options, and click Convert. Your browser does the work locally and produces a TXT file you can save right away.

What is the maximum file size for Colors from Image?

Because Colors from Image runs in your browser, the maximum size depends on your device's available memory. Most modern phones and laptops handle files up to a few hundred MB without issues.