Color Space Converter API

Convert PNG, JPEG, and WebP images between sRGB, Display P3, Linear sRGB, Adobe RGB, and Rec. 2020 in your browser. Auto-detects source color space and writes correctly tagged output in any supported format.

The Color Space Converter is also available as a free REST API. Send a POST request with a JSON body to https://dot.tools/api/tools/color-space — no authentication, no API key, CORS enabled. Successful calls return { "ok": true, "result": { … } }; failures return HTTP 400 or 422 with an error body.

Request body

FieldTypeRequiredDescription
imageBase64stringrequiredBase64-encoded PNG, JPEG, or WebP image. A data-URL prefix (data:image/...;base64,) is accepted and stripped.

Response

FieldTypeRequiredDescription
format"png" | "jpeg" | "webp" | "unknown"required
detectedobjectrequired

Example request

curl -X POST https://dot.tools/api/tools/color-space \
  -H 'Content-Type: application/json' \
  -d '{
  "imageBase64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUeJxj+M/A8B8ABQAB/4mZPR0AAAAASUVORK5CYII="
}'

Sample response

{
  "ok": true,
  "result": {
    "format": "png",
    "detected": {
      "space": "srgb",
      "reason": "sRGB chunk present",
      "assumed": false
    }
  }
}

Use the free Color Space Converter in your browser, read the Color Space Converter guide, or import the full OpenAPI specification.