Skip to content
Eduardo Lira

Labs · L/02

Developer converters

Convert useful units for development.

PX and REM

Base: 1rem = 16px, the browser default.

Reference
PixelsREMCommon use
8px0.5remSmall spacing
12px0.75remSmall text
14px0.875remSmall body text
16px1remDefault body text
18px1.125remLarge body text
20px1.25remSubtitles
24px1.5remSmall headings
32px2remMedium headings
48px3remLarge headings

HEX and RGB

Short (#fff) or long (#ffffff) HEX; RGB as rgb(255, 0, 0) or rgba(255, 0, 0, 0.5).

Bytes

Storage units in base 1024 (1 KB = 1024 bytes).

Base64

Encodes and decodes text (UTF-8, accents included).

Unix timestamp

Seconds (or milliseconds) since January 1, 1970, in UTC.

Naming formats

Converts text to the formats used in code. Accents are removed.