Conversor REM para PX

O Conversor REM para PX é uma ferramenta essencial para desenvolvedores e designers web que precisam ajustar tamanhos de fonte e elementos de layout. Ele simplifica a conversão de unidades REM, que são relativas ao tamanho da fonte raiz, para unidades de pixel (PX) fixas. Isso garante consistência e precisão em seus projetos, facilitando a adaptação para diferentes dispositivos e resoluções de tela.

Common sizes at 16px base

REMPXTailwind approx.
0.25rem4pxtw-1
0.5rem8pxtw-2
0.75rem12pxtw-3
1rem16pxtw-4
1.25rem20pxtw-5
1.5rem24pxtw-6
2rem32pxtw-8
2.5rem40pxtw-10
3rem48pxtw-12
4rem64pxtw-16
5rem80pxtw-20
6rem96pxtw-24

Como usar

  1. 1

    Insira o valor em REM que deseja converter no campo indicado.

  2. 2

    O resultado em PX será exibido automaticamente.

  3. 3

    Copie o valor convertido para usar em seu projeto.

Perguntas frequentes

Ratings & Reviews

Rate this tool

Sign in to rate and review this tool.

Loading reviews…

What This Tool Does

The Microapp REM to PX Converter handles the most common CSS unit conversion: rempx. Enter a value in either unit, get the equivalent in the other instantly. Adjust the root font-size if your project uses something other than the default 16 px.

This is the daily conversion every front-end developer needs at some point — when migrating designs from fixed-pixel mockups to responsive rem-based code, or when reading rem values from a stylesheet and wanting to know how big they actually render.

How to Use It

  1. Enter a value in either the rem or px field.
  2. The other field updates instantly.
  3. If your project uses a non-default root font-size (some designs use 10 px on the root for easier mental math), change the assumption.
  4. Click "Copy" to put the value on your clipboard.
Worked example. Default root = 16 px:
• 1 rem = 16 px
• 1.5 rem = 24 px
• 0.875 rem = 14 px
• 2 rem = 32 px
Pattern: px = rem × root font-size. Always.

Why "16 px" Is the Default

All major browsers default to a root font-size of 16 px. This isn't arbitrary — it's the result of a decades-long convention rooted in print typography. It's also the size most people read body text at comfortably without zooming.

You can override the root font-size in CSS:

html { font-size: 18px; }  /* now 1 rem = 18 px */

Some designers set html { font-size: 62.5% } (which equals 10 px) as a "rem hack" for easier mental math: 1 rem = 10 px, 1.5 rem = 15 px, 2.4 rem = 24 px — the rem value reads like the pixel value with a decimal moved. Whether this is worth it is a stylistic call (it works, but it overrides the user's font-size preference, which is the whole reason rem exists). The Microapp converter supports any root size you set.

The "Why rem at All" Question

Modern responsive design strongly prefers rem to px for almost everything. Three reasons:

  1. Accessibility. Users who increase their browser font-size (an accessibility setting common with low-vision users) get larger UI when you use rem. With px, the UI stays small regardless of their preference.
  2. Easier global scaling. Need to make the entire UI 25% bigger for a tablet view? Change root font-size from 16 px to 20 px. Every rem-based element scales. With px, you'd need to update every value individually.
  3. Design system consistency. When all sizes are multiples of the root font-size, the whole UI feels rhythmic. Mixing px and rem fights this.

The exceptions where px is still right: 1-pixel borders (1 px = 1 device pixel, exactly what you want for crisp lines), drop shadows where the offset is meant to be exactly 1-2 device pixels, and edge cases where you really need pixel precision regardless of user font-size.

Quick Reference Table

rem (at 16 px root)pxCommon use
0.5 rem8 pxHalf-step spacing, small gap
0.75 rem12 pxCaption / fine-print text
0.875 rem14 pxSecondary body text, button labels
1 rem16 pxBody text default
1.125 rem18 pxSlightly emphasized body
1.25 rem20 pxLead paragraph, h4
1.5 rem24 pxh3, common spacing unit
2 rem32 pxh2, large component padding
2.5 rem40 pxh1 (mobile)
3 rem48 pxh1 (desktop), section headers

Related Tools

For broader CSS unit conversion (px, rem, em, vw, vh, pt, etc.), use the CSS Unit Converter. For converting CSS color formats, the Color Converter handles HEX/RGB/HSL/HSV. To work with CSS animations visually, see the CSS Animation Generator.