Color Space Converter

Color Space Converter

Convert images between the most common RGB color spaces, correctly and in your browser.

Supported Spaces

  • sRGB — the standard web color space.
  • Display P3 — Apple's wide-gamut space, ~25% more colors than sRGB.
  • Linear sRGB — sRGB primaries without gamma encoding, for lighting math and scientific use.
  • Adobe RGB (1998) — wide-gamut space popular in photography and print (deeper greens/cyans than sRGB).
  • Rec. 2020 — UHD TV / HDR gamut, much wider than P3 or Adobe RGB.

Supported Input/Output Formats

| Format | Input detection | Output tagging |

|--------|-----------------|----------------|

| PNG | ✅ cICP, iCCP, sRGB, gAMA | ✅ cICP chunk where applicable, else iCCP |

| JPEG | ✅ APP2 ICC profile (multi-segment) | ✅ APP2 ICC profile |

| WebP | ✅ ICCP RIFF chunk | ✅ ICCP RIFF chunk |

If no color metadata is embedded on input, the tool assumes sRGB and lets you override.

How it works

1. Source detection — The tool inspects your file's color metadata (PNG chunks, JPEG APP2 ICC blobs, WebP RIFF ICCP) to figure out what color space it's in.

2. Conversion — Pixels are decoded to linear light via the source's transfer function, transformed between RGB primaries via D65-aligned 3×3 matrices, then re-encoded for the target space.

3. Tagging — The output image is tagged with a standards-compliant ICC profile (JPEG/WebP) or a cICP/iCCP chunk (PNG) so browsers, image viewers, and operating systems know exactly how to display it.

Notes

  • JPEG can't store alpha; if your source is transparent, it gets flattened onto a white background before encoding.
  • JPEG quality is adjustable via the slider in the toolbar (0.50 – 1.00, default 0.92).
  • Linear sRGB + lossy format is unusual (JPEG's DCT assumes gamma-encoded input), but the tool will still produce a correctly-tagged file if you ask for it.
  • Wide-gamut → sRGB conversion clips out-of-gamut colors to the sRGB boundary. Future versions may add gamut compression.
  • ICC profiles embedded in output come from the Compact-ICC-Profiles collection (CC0).
  • All processing happens locally. Your images are never uploaded anywhere.

Coming later

ProPhoto RGB, full ICC profile reading/writing, HDR transfer functions (PQ / HLG), gamut compression for wide→narrow conversions.

Read the full Color Space Converter guide and the Color Space Converter API reference.