← Back to directory

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

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

Overview

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.

Protocol x402
Price $0.02
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider CSS Design Calc
Source bazaar
Indexed 2026-10-20 21:22:31

Health

Status healthy
Latency (p50) 593ms
Uptime (30d) 93.3%
Reliability Score 86.7/100
Last Checked 2026-10-28 06:41:07
Last Healthy 2026-10-28 06:41:07
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

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

Output Schema

{ "example": { "allUnits": { "%": 112.5, "cm": 0.47625, "em": 1.125, "in": 0.1875, "mm": 4.7625, "pc": 1.125, "pt": 13.5, "px": 18, "q": 19.05, "rem": 1.125, "vh": 2, "vmax": 1.25, "vmin": 2, "vw": 1.25 }, "asOf": "2026-10-11T14:32:43.659Z", "css": "1.125rem", "degraded": false, "disclaimer": "Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting.", "input": { "unit": "px", "value": 18 }, "notChecked": [ "font-relative units that depend on the actual font: ch, ex, cap, lh, rlh, ic", "container query units (cqw, cqh) and dynamic viewport units (dvh, svh, lvh), which depend on browser chrome", "…2 more" ], "parentPx": 16, "pixels": 18, "reasons": [ "Absolute units use the CSS reference pixel: 1in = 96px, 1pt = 1/72in, 1pc = 12pt, 1cm = 96/2.54px.", "rem used a root of 16px; em and % used a parent of 16px; vw/vh used a 1440 x 900 viewport." ], "result": 1.125, "resultUnit": "rem", "rootPx": 16, "source": "CSS Values and Units Level 4 absolute-unit definitions (1in = 96px = 72pt = 6pc = 2.54cm), computed locally", "summary": "18px = 1.125rem (18px).", "verdict": "CONVERTED", "viewportH": 900, "viewportW": 1440 }, "type": "json" }