Labs · L/02
Developer converters
Convert useful units for development.
PX and REM
Base: 1rem = 16px, the browser default.
Reference
| Pixels | REM | Common use |
|---|---|---|
| 8px | 0.5rem | Small spacing |
| 12px | 0.75rem | Small text |
| 14px | 0.875rem | Small body text |
| 16px | 1rem | Default body text |
| 18px | 1.125rem | Large body text |
| 20px | 1.25rem | Subtitles |
| 24px | 1.5rem | Small headings |
| 32px | 2rem | Medium headings |
| 48px | 3rem | Large 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.