ToolAssay

Convert a CSS length between px, rem, em, pt, pc, in, cm, mm, Q, vw, vh, vmin, v

Convert a CSS length between px, rem, em, pt, pc, in, cm, mm, Q, vw, vh, vmin, vmax and % with your root and viewport sizes.

Answeringour last check, 2026-10-21
1 of 1checks answered this week
1645 msmedian answer time
$0.02listed price per call
$0.02price it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

GET https://css-design-calc.x402tookit.com/css-unit-convert

CategoryEverything else
Provider hostcss-design-calc.x402tookit.com
Networkseip155:137, eip155:42161, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
Payment schemesexact
Self-reported calls, 30 days1 from 1 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-10-21 valid payment request 402$0.02 1645 ms

Example input (from the provider)

{
  "method": "GET",
  "queryParams": {
    "from": "px",
    "rootPx": 16,
    "to": "rem",
    "value": 18
  },
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "from": {
              "description": "Source unit: px, rem, em, pt, pc, in, cm, mm, q, vw, vh, vmin, vmax or %",
              "enum": [
                "px",
                "rem",
                "em",
                "pt",
                "pc",
                "in",
                "cm",
                "mm",
                "q",
                "vw",
                "vh",
                "vmin",
                "vmax",
                "%"
              ],
              "type": "string"
            },
            "parentPx": {
              "description": "Parent font size in px for em and % (default = rootPx)",
              "type": "number"
            },
            "rootPx": {
              "description": "Root font size in px for rem (default 16)",
              "type": "number"
            },
            "to": {
              "description": "Target unit (same choices)",
              "enum": [
                "px",
                "rem",
                "em",
                "pt",
                "pc",
                "in",
                "cm",
                "mm",
                "q",
                "vw",
                "vh",
                "vmin",
                "vmax",
                "%"
              ],
              "type": "string"
            },
            "value": {
              "description": "The number to convert",
              "type": "number"
            },
            "viewportH": {
              "description": "Viewport height in px for vh, vmin, vmax (default 900)",
              "type": "number"
            },
            "viewportW": {
              "description": "Viewport width in px for vw, vmin, vmax (default 1440)",
              "type": "number"
            }
          },
          "required": [
            "value",
            "from",
            "to"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "allUnits": {
              "properties": {
                "%": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "cm": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "em": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "in": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "mm": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "pc": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "pt": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "px": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "q": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "rem": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "vh": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "vmax": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "vmin": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "vw": {
                  "type": [
                    "null",
                    "number"
                  ]
                }
              },
              "type": [
                "null",
                "object"
              ]
            },
            "asOf": {
              "type": [
                "null",
                "string"
              ]
            },
            "css": {
              "type": [
                "null",
                "string"
              ]
            },
            "degraded": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "disclaimer": {
              "type": [
                "null",
                "string"
              ]
            },
            "input": {
              "properties": {
                "unit": {
                  "type": [
                    "null",
                    "string"
                  ]
                },
                "value": {
                  "type": [
                    "null",
                    "number"
                  ]
                }
              },
              "type": [
                "null",
                "object"
              ]
            },
            "notChecked": {
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "parentPx": {
              "type": [
                "null",
       

This page as JSON