Skip to content
Documentation sections

Length Unit Converter (mm, mil, inch, μm)

POSThttps://rftools.io/api/py/v1/calculate

Slug length-units. Convert PCB dimensions between millimetres, mils (thou), inches, micrometres, centimetres, and metres. Includes the copper-weight equivalent for plating thickness.

Inputs

Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.

Inputs of length-units
NameUnitRangeDefaultDescription
millimeternumbermmat least 01Length

Outputs

Returned in values, by key. A value that is unbounded or undefined is null.

Outputs of length-units
FieldUnitDescription
milheadlinemilMils (thou)
micrometerμmMicrometres
inchinInches
centimetercmCentimetres
metermMetres
ounceCopperEquivalentozOnly meaningful when the length is a copper foil thickness (1 oz ≈ 34.8 μm, ±10%)

Calling it

  • Calculate: one call, the request and response in full, and its errors.
  • Batch: this calculator with others, or a sweep, in one request.
  • Solve for a target: the value of one input that brings an output to a target.