Home

Unit Converter

Frequency & period, storage, data rate, voltage/current and ADC codes — everyday embedded unit conversions in one place.

Frequency ↔ Period
Enter either side and the other is computed live from T = 1/f. Handy for timer ticks, baud clocks and sample rates.
f
T

Frequency

Hz
1000000
kHz
1000
MHz
1
GHz
0.001

Period T = 1/f

s
0.000001
ms
0.001
μs
1
ns
1000
Storage Capacity
Embedded memory and flash are strictly binary: 1 KB = 1024 B = 8192 bit.
bit
8192
B
1024
KB
1
MB
0.000976563
GB
9.53674e-7
TB
9.31323e-10

Mind the convention: drive and network labels are decimal (1000-based), so a 128 GB stick shows about 119 GB in the OS.

Data Rate
Bit-based units are strictly decimal (1000-based), and bits differ from bytes by 8: 1 KB/s = 8 kbps.
Common baud rates
bps
115200
kbps
115.2
Mbps
0.1152
Gbps
0.0001152
B/s
14400
KB/s
14.4
MB/s
0.0144
GB/s
0.0000144

115200 bps UART ≈ 14400 B/s; a 100 Mbps link caps at 12.5 MB/s.

Voltage / Current
1000-based ladders for V / mV / μV and A / mA / μA; results show only the matching dimension.
V
0.001
mV
1
μV
1000
ADC Code ↔ Voltage
Full scale maps as V = code ÷ (2ⁿ − 1) × Vref, matching the STM32 reference manual.

Code → voltage

V
1.6504
mV
1650.4
μV
1650400
1 LSB (mV)
0.805861

Voltage → code

Code (DEC)
2048
Code (HEX)
0x800
Exact code
2047.5
Number Base Conversion

HEX / DEC / BIN / OCT conversion, two's complement and byte-order views live in the dedicated base converter, with BigInt support.

Open base converter