UNITSMITH

Unit­smith.

Every conversion a developer reaches for — data sizes, durations, timestamps, number bases, and text encodings. Type in any field and the rest follow.

ALL CONVERSIONS RUN IN YOUR BROWSER · WORKS OFFLINE

Data size

1 B — 1 TB · log₁₀
Decimal · ×1000
Binary · ×1024

Duration

1 ms — 1 y · log₁₀

The human field reads 1h 30m, 90s, 2d 4h, 1:02:03 (h:m:s), 4:30 (m:s) — a bare number is seconds.

Unix time

epoch · 1970-01-01T00:00:00Z
Now

Number base

arbitrary precision · BigInt
   
0x
0b
0o

Text codec

UTF-8 · Base64 · hex · URL

Encoding the text above into each format. Switch to Decode to paste an encoded string and read it back.

CSS units

1rem = 16px · 1pt = 4⁄3px

rem is relative to the root font size — change root px if yours isn't 16.