Developer tools

CSS Length Converter

Convert CSS absolute lengths between pixels, points, picas, inches, centimeters, millimeters, and Q locally in your browser.

Convert CSS absolute lengths between pixels, points, picas, inches, centimeters, millimeters, and Q. Zero is a valid length. Conversions use the CSS definitions: 96px = 72pt = 6pc = 1in, 1in = 2.54cm, and 1Q = 0.25mm.

Your converted CSS length will appear here.

Conversions run locally in your browser; your length is not uploaded or stored.

Convert one CSS length into the units you need.

Enter a non-negative CSS length and choose its unit to see the equivalent pixels, points, picas, inches, centimeters, millimeters, and Q. Zero is valid. Conversions use the CSS absolute-unit definitions: 96px = 72pt = 6pc = 1in, 1in = 2.54cm, and 1Q = 0.25mm. It runs locally in your browser, so your value is not uploaded or stored.

Frequently Asked Questions

Everything you need to know about this tool, how it works, and privacy.

Which CSS length units can I convert?

Enter a CSS absolute length in pixels, points, picas, inches, centimeters, millimeters, or Q. The converter returns the equivalent value in all seven units using 96px = 72pt = 6pc = 1in, 1in = 2.54cm, and 1Q = 0.25mm.

Can I convert zero or decimal CSS lengths?

Yes. Zero is a valid CSS length, and decimal values are accepted. Negative values are rejected because a length cannot be less than zero. Results show up to six decimal places when needed.

What happens with very large CSS length values?

The converter shows an error when the entered length is too large to convert safely, instead of returning an unreliable rounded result.

Does my CSS length leave my browser?

No. The conversion and copy action run locally in your browser. CodeASystem does not upload or store the value you enter.