สีและการออกแบบ
ตัวแปลงหน่วย CSS
ตัวแปลงหน่วย CSS ฟรี แปลงระหว่าง px, rem, em, pt, pc และหน่วยทางกายภาพตามขนาดฟอนต์ของรูท สำหรับการออกแบบที่ตอบสนองและเวิร์กโฟลว์ CSS
Runs in your browser
CSS units converter
rem
1rem
em
1em
pt
12pt
pc
1pc
in
0.1667in
cm
0.4233cm
หมายเหตุจากบรรณาธิการ
Understanding · px, rem, em, and the rest of the family.
บทเชิงลึกนี้มีให้บริการเฉพาะภาษาอังกฤษในขณะนี้ เครื่องมือแปลงด้านบนทำงานในภาษาของคุณ บทความอธิบายแบบยาวยังไม่ได้แปล
คำถามที่พบบ่อย
Quick answers.
›Is 1rem always 16px?
By default, yes — but if you change the root font-size, all rem values scale. We let you set the root for accurate conversion.
›rem vs em?
rem is relative to root font-size; em is relative to the parent's font-size. rem is more predictable for layout.
›Why use rem over px?
rem respects user font-size preferences (for accessibility) and scales the whole layout consistently.
›Is the converter free?
Yes — fully free, no signup.
ผู้คนยังค้นหา
เครื่องมือที่เกี่ยวข้อง
More in this room.
- ตัวแปลงขนาดตัวอักษรpx ↔ rem ↔ em ↔ pt ↔ % — แปลงทันที
- เครื่องคำนวณอัตราส่วนภาพคำนวณอัตราส่วนและปรับขนาดมิติ
- ตัวสร้างเค้าโครงตาราง CSSลากตัวปรับขนาดแทร็ก คัดลอก CSS Grid
- ตัวแนะนำการจับคู่ Fontการจับคู่ที่คัดสรรมาอย่างดีสำหรับ Google หรือ system font ใดๆ
- ตัวแปลงสี (HEX/RGB/HSL/OKLCH)แปลงค่า HEX, RGB, HSL และ OKLCH ที่ทันสมัย ได้ทันที
- ตัวตรวจสอบคอนทราสต์ (WCAG)ตรวจสอบคอนทราสต์ WCAG AA / AAA — ผ่านหรือไม่ผ่าน