Parse · Convert · Standardize

Measurement API

Different units.
One clear answer.

Turn feet and inches, kilograms or compound units into consistent values for your forms, product catalog and files. Send the measurement you have. Get the amount and unit you need.

Start free. Parsing and conversion on every plan.

Try a measurement

Include the unit. Leave the target empty for the standard unit.

Number format & unit system

Choose the punctuation used in your measurement. Unit system resolves names such as gallon.

Example response

{
  "measure": "5 ft 11 in",
  "valid": true,
  "type": "length",
  "amount": "180.34",
  "unit": "cm"
}
Supported units

Measurements in. Useful values out.

One API.
The units your app needs.

Convert to a chosen unit, standardize mixed input, or read a decimal comma. See what happens when a unit has more than one meaning.

Feet and inches. Centimeters back.

Keep the mixed measurement people entered. Choose centimeters for a consistent height in your app.

Request

curl "https://api.parseapi.com/measure/5%20ft%2011%20in?to=cm" \
  -H "X-API-Key: YOUR_API_KEY"

Example response

JSON200 OK
{
  "measure": "5 ft 11 in",
  "valid": true,
  "type": "length",
  "amount": "180.34",
  "unit": "cm"
}

Ready for your next step

Keep the input.
Use the clean value.

People enter measurements their own way. Your app can store, compare and display them in a consistent unit, with the original value alongside it.

Amounts come back as decimal strings. Keep the string for display, or use decimal arithmetic when calculating with it.

Build a flexible height field

Original measurement → Converted value

5 ft 11 in
180.34 cm
2.5 lb
1.133980925 kg
32 °F
0 °C

Unit conversion & discovery

Everyday values.
Technical units.

Heights, weights, temperatures and more. Browse supported unit codes, names and aliases with the same API.

Filter the unit catalog by measurement type, search a name, or find units compatible with your target. Choose the meaning of customary units such as gallons explicitly.

Explore supported units
Length, area & volume
cm · ft · m² · acre · L · gal_us
Mass & temperature
kg · lb · °C · °F · K
Duration & motion
s · min · h · km/h · m/s
Data & data rate
B · MB · GiB · bit/s
Force, pressure & energy
N · Pa · psi · J · kWh
Electrical units & more
A · V · ohm · Hz · rad

From the first request to your app

Bring your values.
Choose your language.

Copy a request above and use the same API key in HTTP, an SDK or MCP. Check valid, then use the amount and unit in your next step.

Measurement reference

HTTP, SDKs and MCP

Use your language’s client or let an agent parse and convert measurements through MCP.

Working with a file? Clean a CSV of mixed measurements. For a quick conversion, use the unit converter.

Before you build.

What can I parse and convert?

Decimal amounts, fractions such as 1/2 in, mixed measurements such as 5 ft 11 in, and supported compound units such as km/h. Browse /measure/units for unit codes, names and aliases. Convert between compatible units of the same dimension.

What happens when I leave out the target unit?

The API returns the standard unit for the measurement type: meters for length, kilograms for mass, seconds for duration and kelvin for absolute temperature. The original measurement stays in measure.

How do number locale and unit system work?

locale reads decimal and grouping separators. system=us or system=imperial resolves customary names such as gallon. Neither is inferred from location. Explicit unit codes retain their meaning.

What happens when a measurement is unclear?

The response returns valid: false, an explicit reason, null amount and unit, and unit choices when there are alternatives. Successful responses omit reason and choices. Invalid input is HTTP 200. An invalid or incompatible target unit returns HTTP 400. Check valid before using amount.

Why is the amount a string?

Every amount uses a decimal string, with up to 18 significant digits rounded half away from zero. Keep it as a string for display, or use decimal arithmetic for further calculations.

Can I turn weight into volume or months into seconds?

Weight and volume need additional information such as density. Calendar months have variable lengths. The API converts supported compatible units with explicit definitions; it does not guess missing physical or calendar information.

How much does a conversion cost?

Parsing and conversion use one API request on every plan, including Free. Unit discovery also uses an API request. Your monthly request allowance is shared across ParseAPI products.

Measurement API pricing

Put every value
on the same scale.

Parse and convert in one API request, on every plan. Your monthly request allowance is shared across ParseAPI products.

Free

Start with a free API key.

Room to grow

Choose your capacity on Plans.