Skip to content
Utilities

Unit Converter

Convert between common units used in electronics and making — length (mm/cm/inch), weight (g/kg/oz), temperature (°C/°F/K), and electrical units (mV/V, mA/A, mΩ/kΩ/MΩ).

Unit Converter

Convert common length, mass, temperature, voltage, current, and resistance units. Electrical dimensions are kept separate so voltage cannot accidentally be converted to current.

0.03937008

1 Millimetre (mm) = 0.03937008 Inch (in)

Temperature conversions use offsets; other conversions use scale factors. Values are mathematical conversions and do not imply instrument accuracy.

SI prefixes used in electronics

PrefixSymbolMultiplierExample
gigaG10⁹2.4 GHz Wi-Fi
megaM10⁶1 MΩ, 16 MHz crystal
kilok10³10 kΩ, 433 kHz
millim10⁻³20 mA, 5 mW
microµ10⁻⁶100 µF, 10 µA sleep current
nanon10⁻⁹100 nF, 50 ns
picop10⁻¹²22 pF crystal load caps

Conversions makers need often

  • Current: 1 A = 1000 mA = 1 000 000 µA.
  • Capacitance: 1 µF = 1000 nF = 1 000 000 pF; 0.1 µF = 100 nF.
  • Resistance: 4.7 kΩ = 4700 Ω; 1 MΩ = 1000 kΩ. Schematics often write 4k7 for 4.7 kΩ and 1R0 for 1 Ω.
  • Length (PCB): 1 mil = 0.001 inch = 0.0254 mm. 1 mm ≈ 39.37 mil. Standard 2.54 mm pin header pitch = 100 mil.
  • Temperature: °F = °C × 9/5 + 32. 25 °C = 77 °F, 100 °C = 212 °F. Kelvin = °C + 273.15.
  • Copper thickness: 1 oz/ft² copper ≈ 35 µm ≈ 1.38 mil.

Writing values in code

Keep values in base units in your code and convert only for display: store 0.0047 for 4.7 mA, or use integer milli-units (4700 µA) on small microcontrollers to avoid floating point.

Worked conversions

ConvertWorkingResult
0.047 µF to nF× 100047 nF
2200 pF to nF÷ 10002.2 nF (code 222)
350 mA to A÷ 10000.35 A
0.8 mm to mil÷ 0.025431.5 mil
25 mil track to mm× 0.02540.635 mm
85 °C to °F× 9/5 + 32185 °F
3.7 V × 2500 mAh to Wh÷ 10009.25 Wh
1 kWh to joules× 3 600 0003.6 MJ

Units that trip people up

  • mAh vs Wh: mAh only makes sense with a voltage. 10 000 mAh at 3.7 V is 37 Wh; at 5 V output (after the boost converter) a power bank can supply about 6000–7000 mAh.
  • dB: for voltage ratios, dB = 20 × log₁₀(V2/V1); for power ratios, 10 × log₁₀(P2/P1). +6 dB is double the voltage; +3 dB is double the power.
  • RMS vs peak: 230 V RMS mains peaks at 325 V; component voltage ratings must cover the peak.
  • Pitch: 2.54 mm (0.1 inch) for DuPont headers and breadboards, 2.0 mm for many JST connectors, 1.27 mm for fine-pitch headers.

Formula, inputs and worked examples

Formula and method

Use dimensionally consistent conversion factors; temperature conversions are affine (°F = °C × 9/5 + 32), unlike ordinary scale conversions.

Worked examples

Temperature

25 °C is 25 × 9/5 + 32 = 77 °F and 25 + 273.15 = 298.15 K.

Header pitch

The standard 0.1 inch pitch used by breadboards and DIP chips is 2.54 mm, because 1 inch is exactly 25.4 mm.

Electrical prefixes

3300 mV = 3.3 V, 20 mA = 0.02 A and 4.7 kΩ = 4,700 Ω.

Inputs

  • Numeric value — Unit: source unit
  • Source unit — Unit: unit selection
  • Target unit — Unit: unit selection

What the result means

  • Converted value — Unit: selected target unit

Practical tips and common mistakes

  • Temperature conversion needs an offset, but a temperature difference does not: a 10 °C rise is an 18 °F rise.
  • Check prefixes: m is milli (1/1000), M is mega (1,000,000) and µ is micro (1/1,000,000). Mixing up m and M is a common mistake.
  • Convert to base units (volts, amps, ohms, farads) before using a formula.
  • Mixed unit systems cause costly errors in PCB and enclosure work, so confirm whether a drawing is in millimetres or inches.

Assumptions and limitations

  • Check whether a requested conversion is linear or requires an offset, as with temperature.
  • For electrical units, confirm prefixes such as m, µ, k, and M carefully.

Frequently asked questions

How do I convert mA to A?

Divide by 1000: 250 mA = 0.25 A. To go from amps to milliamps, multiply by 1000.

How do I convert µF to nF?

Multiply by 1000: 0.1 µF = 100 nF, and 0.01 µF = 10 nF. To get picofarads, multiply nanofarads by 1000 again.

How many mm is a mil?

One mil is one thousandth of an inch: 0.0254 mm. A 10 mil PCB trace is 0.254 mm wide.

What does 4k7 mean on a schematic?

4.7 kΩ. The letter replaces the decimal point to avoid misreading, so 2R2 is 2.2 Ω and 1M5 is 1.5 MΩ.

Learn more

More Utilities