เครื่องแปลง px ↔ rem
เครื่องมือสำหรับนักพัฒนาการแปลงตามขนาดฟอนต์รากพร้อมตารางสเกลทั่วไป
px ↔ rem Converter: Root font-size based conversion with common scale table. rem = px ÷ root font-size (browser default 16px).
ขั้นตอนการแปลงค่า
- 1rem = px ÷ root font-size. 24px ÷ 16 = 1.5000 rem.
- 2px = rem × root font-size. 1.5rem × 16 = 24.00 px.
- 3html { font-size: 62.5% } ตั้งขนาดฟอนต์รากเป็น 10px ในขณะนี้ 1.6rem=16px การคำนวณในใจไม่มีต้นทุน (แต่จะทับที่การตั้งค่าขนาดฟอนต์ของเบราว์เซอร์ผู้ใช้ ต้องพิจารณา)
เกรเดียนต์ที่ใช้บ่อย (คลิกเพื่อเติม)
| px | rem | วัตถุประสงค์การใช้ |
|---|---|---|
| 12px | 0.75rem | Caption text |
| 14px | 0.875rem | Small body |
| 16px | 1rem | Default body (browser base) |
| 18px | 1.125rem | Large body |
| 20px | 1.25rem | Small heading |
| 24px | 1.5rem | H3 heading |
| 32px | 2rem | H2 heading |
| 48px | 3rem | H1 display |
เครื่องมือนี้มีประโยชน์กับคุณไหม?
วิธีใช้งาน
- Paste or type content: drop code/text into the px ↔ rem Converter or fill the parameters.
- Choose mode/options: switch format, rules or processing as needed.
- Live output: results appear instantly — nothing is submitted, data stays in your browser.
- One-click copy: copy the output straight into your development environment.
ประเด็นสำคัญ
- px ↔ rem Converter is a free online developer tool — open and use, no sign-up.
- All calculations run locally in your browser; your data never leaves the device.
- Key capability: Root font-size based conversion with common scale table.
- Results come with formulas and reference tables so you can verify every number.
หลักการและสูตรการคำนวณ
px ↔ rem conversion
Example: 24px at 16px root = 1.5rem; 24px on a 1440px viewport ≈ 1.667vw.
คำถามที่พบบ่อย
How do I use the px ↔ rem Converter?
Are the results accurate?
Is it free? Do I need to sign up?
Does it work on mobile?
Is my data saved?
เครื่องมือที่เกี่ยวข้อง
เครื่องคิดเลขระบายความร้อน CPU
ค่าเผื่อ TDP → ระดับพัดลมระบายอากาศ/ระบบระบายน้ำ AIOเครื่องคิดเลขขนาดสว่านเจาะรูเกลียว
ขนาดที่ระบุลบด้วยพิชช์ ตามประเภทวัสดุตัวจัดรูปแบบ IPv6
ขยายและบีบอัดที่อยู่ IPv6 ตามมาตรฐาน RFC 5952เครื่องเปลี่ยนคอร์ดกีตาร์คาโป้
ลำดับคอร์ด · เลื่อนเซมิโทนต่อเฟรตเครื่องแปลงฐานเลขสำหรับนักพัฒนา
แปลงฐานสอง ฐานแปด ฐานสิบ ฐานสิบหก เป็นชุดHEX → RGB → HSL → CMYK
แปลงรหัสสีระหว่าง 4 รูปแบบตัวจัดรูปแบบ JSON
ตกแต่ง ย่อขนาด และตรวจสอบความถูกต้องของ JSONตัวเข้ารหัส/ถอดรหัส Base64
เข้ารหัสและถอดรหัสข้อความ Base64คู่มือที่เกี่ยวข้อง
แหล่งที่มาและการอัปเดต
Based on RFC 4648, ECMA-262 and related specifications. Last updated: 2025-07
อัปเดตล่าสุด:
สูตรและเนื้อหาในหน้านี้ได้รับการตรวจสอบซ้ำโดยทีมงาน YiJianSuan มีไว้สำหรับการเรียนรู้อ้างอิงเท่านั้น สำหรับการใช้งานจริงโปรดปฏิบัติตามข้อมูลอย่างเป็นทางการ
เนื้อหานี้ได้รับการดูแลและตรวจสอบซ้ำเป็นประจำโดยทีมงานแก้ไขของ YiJianSuan ขั้นตอนการอัปเดตและตรวจสอบสามารถดูได้ที่นโยบายการแก้ไขเนื้อหา.
อ้างอิงหน้านี้: YiJianSuan. เครื่องแปลง px ↔ rem[EB/OL]. https://www.yijiansuan.com/th/c/dev/px-rem
ผลลัพธ์ที่ได้จากเครื่องมือนี้มีไว้สำหรับการอ้างอิงเท่านั้น ไม่ถือเป็นคำแนะนำทางวิชาชีพใดๆ โปรดใช้ผลการคำนวณอย่างเป็นทางการเป็นหลัก