Skip to content
Email signature generator update - check out new features tools
Arteon - company logo
#MadeWithNext.js
Arteon logo

Free online tools for web developers, designers, and marketers.

Tools

  • Online image editor
  • Favicon generator
  • Meta title & description checker
  • Word & character counter
  • Lorem Ipsum Generator
  • Email signature generator
  • Color contrast checker
  • Image color extractor
  • Color palette generator

Tools

  • Free QR code generator
  • pt to px
  • rem to px
  • em to px
  • cm to px
  • mm to px
  • inches to px
  • DPI to PPI
  • HEX to RGB

Tools

  • RGB to HSL
  • RGB to CMYK
  • bytes to KB/MB/GB
  • Unix to date
  • DEC to BIN
  • DEC to HEX
  • Mbps to MB/s
  • vw to px
  • Tailwind CSS spacing to px

Tools

  • JPG to WebP
  • PNG to WebP
  • WebP to JPG
  • WebP to PNG
  • PNG to JPG
  • JPG to PNG
  • SVG to PNG
  • BMP to JPG
  • JPG to AVIF

Legal documents

  • Privacy Policy
  • Terms of Service
© 2026 Arteon. All rights reserved.#MadeWithNext.js

Convert Tailwind units to pixels

This converter converts Tailwind CSS spacing values to pixel equivalents. Enter a value and the result appears instantly.

  1. /Tools
  2. /tw to px
Loading tool editor...
Tailwind spacing to pixels converter – Arteon

When do you need to convert Tailwind units to pixels?

Tailwind CSS uses a spacing scale where each unit = 0.25 rem = 4 px (at default 16px root). So p-4 = 1 rem = 16 px, p-8 = 2 rem = 32 px, w-64 = 16 rem = 256 px.

This converter helps developers quickly translate Tailwind spacing values to exact pixel measurements for debugging, design handoff, and documentation.

Tailwind also has special values: 0.5 = 2px, 1.5 = 6px, 2.5 = 10px, 3.5 = 14px, and named sizes like full = 100%, screen = 100vw.

All calculations run locally in your browser — nothing is sent to any server.

How to use the converter?

  1. 1. Enter a value

    Type a number in the input field. You can use a period or comma as the decimal separator.
  2. 2. Read the result

    The conversion result appears instantly in the field next to it – no clicking required.
  3. 3. Copy or reverse

    Click Copy result or use the Reverse button to convert in the opposite direction.

When is this converter useful?

  1. CSS Debugging

    How many px is p-6? Answer: 24 px (1.5 rem).
  2. Figma Conversion

    Design in px → matching Tailwind classes.
  3. Pixel-perfect

    Match the layout to the required graphic design.
  4. Designer Collaboration

    The designer provides px, the developer needs Tailwind classes.

What makes this converter different?

  1. Complete privacy

    All calculations run locally in your browser. No data is sent to any server.
  2. Real-time results

    The result updates instantly as you type – no need to click any button.
  3. Bidirectional conversion

    The Reverse button lets you convert in both directions with one click.
  4. Reference table

    A ready-made table with commonly converted values and contextual descriptions.

How does Tailwind spacing work?

Tailwind spacing = value × 0.25 rem. At 16px root: spacing × 4 = pixels.

p-1 = 4px, p-2 = 8px, p-4 = 16px, p-8 = 32px, p-16 = 64px, p-32 = 128px, p-64 = 256px.

Font sizes use different values: text-sm = 14px, text-base = 16px, text-lg = 18px, text-xl = 20px, text-2xl = 24px.

Practical tips

  • Spacing: p-1 = 4px, p-2 = 8px, p-3 = 12px, p-4 = 16px, p-6 = 24px, p-8 = 32px.
  • Width: w-1 = 4px, w-4 = 16px, w-12 = 48px, w-24 = 96px, w-48 = 192px, w-64 = 256px.
  • Breakpoints: sm ≥ 640px, md ≥ 768px, lg ≥ 1024px, xl ≥ 1280px.
  • Max-width: max-w-sm = 384px, max-w-md = 448px, max-w-lg = 512px, max-w-xl = 576px.

Tailwind spacing scale

Tailwind spacing scale
Tailwindrempx (at 16px root)
10.25rem4px
41rem16px
82rem32px
164rem64px
6416rem256px

rem

  • 1
    0.25rem
  • 4
    1rem
  • 8
    2rem
  • 16
    4rem
  • 64
    16rem

px (at 16px root)

  • 1
    4px
  • 4
    16px
  • 8
    32px
  • 16
    64px
  • 64
    256px

Convert other units to px

pt to pxrem to pxem to pxcm to pxmm to pxinches to pxvw to px

Explore other unit converters

DPI to PPIHEX to RGBRGB to HSLRGB to CMYKbytes to KB/MB/GBUnix to dateDEC to BINDEC to HEXMbps to MB/s

Frequently asked questions

p-4 = 1rem = 16px at default root font size.

Each unit = 0.25rem. So multiply by 4 to get pixels: p-6 = 6 × 4 = 24px.

sm = 640px, md = 768px, lg = 1024px, xl = 1280px, 2xl = 1536px.

Yes, in tailwind.config.js under theme.spacing. You can override or extend default values.

Yes. All calculations run in your browser. No data is sent to any server.

Tailwind na px – Arteon

Help us improve our tools

Have an idea, found a bug, or want to suggest a feature? Drop us a message – we respond within 24 hours.