📐
🖨️

Convert CSS Units for Print Stylesheets

Convert between px, pt, and rem for print media queries and PDF output CSS.

ບໍ່ຈໍາເປັນຕ້ອງເຂົ້າສູ່ລະບົບ
1rem

Context (affects rem/em/vw/vh/%)

All conversions for 16 px
Root EM (rem)1 rem
EM (em)1 em
Points (pt)12 pt
Viewport Width (vw)1.11111 vw
Viewport Height (vh)1.77778 vh
Percent (%)100 %

Common pixel sizes → rem (at 16px base)

Print CSS tips

🖨️

For print CSS, use pt (points) — the traditional typographic unit. 1pt = 1/72 inch. At 96 DPI: 1pt = 1.333px. This tool converts both.

💡

Print body text is typically 10–12pt (13–16px). Headings 14–18pt. Use the pt converter to verify your screen CSS will look correct on paper.

📄

Margins and page sizes in print CSS use cm, mm, or in. For padding and spacing within the content area, pt is standard and compatible across all print browsers.

🔍

When generating PDFs via wkhtmltopdf or Puppeteer, pixel values depend on the DPI setting. At 96 DPI, 1in = 96px = 72pt. Convert your values accordingly.

ມັນເຮັດວຽກແນວໃດ

1
ເຂົ້າ
Enter your data into the tool above. Everything stays local to your browser.
2
ຂະບວນການ
The tool processes your data instantly in your browser using JavaScript. No server, no waiting.
3
ດາວໂຫຼດ
Get your result instantly. Nothing is stored after you leave the page — complete privacy.

ເປັນຫຍັງຕ້ອງໃຊ້ຂອງພວກເຮົາ?

ບໍ່ເສຍຄ່າຢ່າງສົມບູນ - ບໍ່ມີຄ່າໃຊ້ຈ່າຍທີ່ເຊື່ອງໄວ້, ເຄີຍ
ບໍ່ມີບັນຊີ, ອີເມວ, ຫຼືເຂົ້າສູ່ລະບົບ
ໄຟລ໌ບໍ່ເຄີຍອອກຈາກອຸປະກອນຂອງທ່ານ
ບໍ່ມີຂອບເຂດຈໍາກັດຂະຫນາດໄຟລ໌ໃດໆ
ບໍ່ມີ watermarks ໃນຜົນຜະລິດໃດໆ

Also check out…

ຄໍາຖາມທີ່ຖາມເລື້ອຍໆ