Skip to content

Library Guides

Units of measurement in product data: one unit, one format

Why mixed units break filters and feeds, exact conversion factors from NIST, how to write a value, what Google, ChatGPT and eBay accept, and a recipe to normalize.

By CentralUpdated 23 November 202612 min read17 sources, checked 23 November 2026
On this page
  1. The short version
  2. Why mixed units break filters, comparisons and feeds
  3. Exact conversion factors
  4. US customary and imperial are not the same
  5. How to write a value
  6. What each channel accepts
  7. The EU rule: metric first
  8. A normalization recipe
  9. Before and after
  10. Common mistakes
  11. Where Central helps

In short

  • One inch is exactly 25.4 millimeters and one pound is exactly 0.45359237 kilograms, according to the conversion tables of the US National Institute of Standards and Technology (NIST).
  • A US fluid ounce is 29.57353 milliliters and a UK fluid ounce is 28.41306 milliliters, so a volume in fluid ounces needs its country before it can be converted.
  • As of November 2026, Google accepts lb, oz, g and kg for product and shipping weight and cm and in for dimensions, and shows product dimensions only when all of them use the same unit.
  • Google reads imperial units in its unit pricing attributes as US units and asks for metric values for products sold to the United Kingdom.
  • Council Directive 80/181/EEC makes the units of its Annex, Chapter I (the SI units, with the liter and the tonne) the legal units for expressing quantities in the EU; other units may accompany them as supplementary indications that are no larger.
  • NIST's style rules put a space between the number and the unit symbol, add no plural s and no period to a symbol, and express a value in one unit only.
Unit normalizerFree tool

The short version#

Mixed units are a consistency problem, one of the six dimensions in our guide to product data quality. Six rules fix it:

  1. One target unit per attribute. For example grams for net weight, millimeters for product dimensions, milliliters for volume.
  2. Convert with the exact factor, round once. The factors are in the table below.
  3. Write number, space, symbol: 410 g. No plural s, no period.
  4. Use a point as the decimal mark in files and feeds. Show a comma only where the reader's language uses one.
  5. Keep the original value in a second column, so a wrong conversion can be traced.
  6. Hold a value without a unit. "72" is not 72 cm until the supplier says so.

The unit normalizer near the top of this page does steps 2 to 5 for one column at a time.

Why mixed units break filters, comparisons and feeds#

  • Filters and sorting. A filter "under 500 g" cannot place 14.1 oz. Sorted as text, 85 g comes after 430 g.
  • Comparisons. A jacket with a back length of 29.9 in looks shorter than one with 74 cm. It is about 2 cm longer.
  • Feeds. Channels accept a short list of units per field and do not guess. Google's product measurement page says to use the same unit for product length, width and height; its specification adds that the information is not displayed otherwise. OpenAI's product feed schema tells sellers to convert measurements before uploading, because units are not inferred from the market.
  • Shipping. Google and eBay calculate carrier rates from the weight and dimensions you send. A weight in the wrong unit gives a wrong rate.

Exact conversion factors#

The factors come from Appendix B.8 of NIST's Guide to the SI. NIST prints exact factors in bold; the others are rounded to seven digits. Multiply the value by the factor.

FromToMultiply byExact?
inch (in)millimeter (mm)25.4Exact
foot (ft)meter (m)0.3048Exact
yard (yd)meter (m)0.9144Exact
square inchsquare centimeter (cm²)6.4516Exact
square footsquare meter (m²)0.09290304Exact
cubic inchcubic centimeter (cm³)16.387064Exact
ounce (oz, avoirdupois)gram (g)28.34952Rounded
pound (lb, avoirdupois)kilogram (kg)0.45359237Exact
ounce (troy)gram (g)31.10348Rounded
ton, short (2,000 lb)kilogram (kg)907.1847Rounded
ton, long (2,240 lb)kilogram (kg)1016.047Rounded
fluid ounce (US)milliliter (ml)29.57353Rounded
pint (US liquid)liter (l)0.4731765Rounded
gallon (US)liter (l)3.785412Rounded
fluid ounce (UK, imperial)milliliter (ml)28.41306Rounded
gallon (UK, imperial)liter (l)4.54609Exact

Temperature has no single factor. NIST's exact formula: subtract 32 from the degrees Fahrenheit, then divide by 1.8.

In the table NIST rounds the pound to 0.4535924 kg and the cubic inch to 16.38706 cm³; the exact values above are in its footnotes. The ounce has no exact entry at NIST. The UK's Weights and Measures Act 1985 defines it as one sixteenth of a pound, which gives 28.349523125 g.

Two worked conversions:

14.1 oz x 28.34952 = 399.73 g   -> 400 g
29.9 in x 25.4     = 759.46 mm  -> 76 cm

US customary and imperial are not the same#

The inch, foot, yard, pound and ounce are the same in the United States and the United Kingdom. Volumes differ, and the ton has three meanings.

UnitUSUK (imperial)Difference
Fluid ounce29.57353 ml28.41306 mlThe UK unit is about 4% smaller
Pint0.4731765 l (liquid pint)0.56826125 lThe UK unit is about 20% larger
Gallon3.785412 l4.54609 lThe UK unit is about 20% larger
Ton907.1847 kg (short ton)1016.047 kg (long ton)The metric ton (tonne) is exactly 1,000 kg

The US and UK columns come from NIST; the UK pint is from Schedule 1 of the Weights and Measures Act 1985, which also defines the fluid ounce as one twentieth of a pint.

What this does to a product record: a UK supplier lists a bottle with 20 fl oz. That is 20 x 28.41306 = 568 ml, one UK pint. Read as US fluid ounces, the same value becomes 591 ml, 23 ml more than the bottle holds.

Two more traps:

  • Troy ounces. Precious metals are weighed in troy ounces of 31.10348 g, not in ounces of 28.34952 g.
  • Google reads imperial as US. Google's unit pricing measure page says the imperial units in that attribute are interpreted as US units, which differ from those used in the UK, and asks for metric values for products sold to the UK.

How to write a value#

These rules are from NIST's Guide to the SI, chapter 6, chapter 7 and chapter 10.

RuleWriteNotNIST section
A space between number and unit symbol410 g, 30.2 °C410g, 30.2°C7.2
The space stays when the value is used as an adjectivea 2 m cablea 2-m cable7.2
Symbols do not change in the plural75 cm75 cms6.1.3
No period after a symbol, unless the sentence ends75 cm long75 cm. long6.1.4
Symbols, not abbreviationss, cm³sec, cc6.1.8
One unit per value10.234 m10 m 23 cm 4 mm7.3
Do not mix a spelled-out number with a symbol5 mfive m7.6
A zero before the decimal marker0.25 kg.25 kg10.5.2
Groups of three digits get a thin space, never a comma43 279.16843,279.16810.5.3

Decimal point or decimal comma. Both are correct. The General Conference on Weights and Measures decided in 2003 that the decimal marker is either the point or the comma on the line, and that neither dots nor commas go between groups of digits (Resolution 10). NIST recommends the point for the United States and notes that the comma is widely used elsewhere. For product data that means: store and send 0.41 kg, and show 0,41 kg only on a page in a language that writes it that way. A value such as 1,250 g is the risk: it is 1.25 g to one reader and 1250 g to the next. A four-digit number needs no separator at all.

Liter. NIST recommends the capital L in the United States. The EU directive below allows both l and L.

Feeds have their own spelling. Google's unit pricing attributes use codes such as floz, sqm, cbm and ct, and its example is 750ml without a space. Keep the standard form in your own data and write each channel's form on export.

What each channel accepts#

As of November 2026, read on each channel's own page on November 23, 2026:

Channel and fieldUnitsWhat the page adds
Google product_weightlb, oz, g, kg0 to 2,000, decimals allowed. The weight of the assembled product
Google product_length, product_width, product_heightcm, in1 to 3,000. The same unit for all of them
Google shipping_weightlb, oz, g, kg0 to 2,000 lb or 0 to 1,000 kg. Required for carrier-calculated rates
Google shipping_length, shipping_width, shipping_heightin, cm1 to 150 in or 1 to 400 cm. Send all three, in the same unit
Google unit_pricing_measureWeight: oz, lb, mg, g, kg. Volume: floz, pt, qt, gal, ml, cl, l, cbm. Length: in, ft, yd, cm, m. Area: sqft, sqm. Count: ctA positive number with at most 2 decimals. sheet and item only in Australia and New Zealand
Google unit_pricing_base_measureThe same units1, 10, 100, 2, 4 or 8 plus the unit; also 75cl, 750ml, 50kg and 1000kg. The same type of unit as the measure
ChatGPT product feed (OpenAI) weight with item_weight_unitg, kg, oz, lbNet weight without packaging. The unit field is required with the weight
ChatGPT product feed (OpenAI) dimensionsin, cm, ft, m, mmAt least two of length, width and height, one unit for all. The product, not the shipping package
eBay package weight (Inventory API)POUND, OUNCE, KILOGRAM, GRAMNeeded for calculated shipping
eBay package dimensions (Inventory API)FEET, INCH, METER, CENTIMETERAll fields are required once dimensions are given

Google does not list millimeters for product or shipping dimensions, so a catalog stored in mm is exported in cm. The other attributes of both feeds are in our Merchant Center specification reference and the guide to the ChatGPT Shopping product feed.

We found no public Amazon page that lists accepted units, so Amazon is not in this table.

Unit prices build on the same values. The two unit_pricing attributes take the content of the product and the quantity the price refers to; when a listing must show a price per kilogram or liter is covered in unit prices online, the arithmetic in how to calculate a unit price, and the unit price calculator returns both feed values.

The EU rule: metric first#

Council Directive 80/181/EEC sets the legal units of measurement in the EU. The European Commission names Commission Directive (EU) 2019/1258 as its latest amendment; the consolidated text is dated June 13, 2020. It says:

  • Article 1. The legal units that must be used for expressing quantities are those listed in Chapter I of the Annex: the SI units with their prefixes, plus named units such as the liter (symbol l or L), the tonne and the bar. Chapter II lists a few other units for specific uses, only in Member States where they were authorized on April 21, 1973.
  • Article 2. The obligation relates to measuring instruments used, measurements made and indications of quantity expressed in units of measurement.
  • Article 3. A supplementary indication is a quantity in another unit that accompanies the quantity in a Chapter I unit. Supplementary indications are authorized. The Chapter I unit must predominate, and the other one appears in characters no larger.

For a listing aimed at the EU, the pattern that follows the text is metric first, the other unit after it and no larger: "Back length: 76 cm (29.9 in)".

A normalization recipe#

  1. Pick a target unit per attribute. Net weight in g, dimensions in mm, volume in ml: the unit in which most values need no decimals.
  2. Split number and unit. 85g becomes 85 and g. Read a decimal comma as a decimal mark.
  3. Stop at what you cannot know. No unit, fl oz, gal, pt or ton without a country, and ounces of precious metal go back to the supplier.
  4. Convert with the factor from the table. Convert from the original value every time, never from an earlier conversion.
  5. Round once, at the end. A sensible rule is to keep the precision of the source: 14.1 oz has three digits, so 399.73 g becomes 400 g. Channels set their own limits: Google rounds a unit pricing measure to 2 decimals.
  6. Keep the original. Store 14.1 oz next to 400 g.
  7. Check the range. A jacket of 400 kg is a unit error.
  8. Format on export. 400 g in your catalog, the channel's units and codes in each feed.

The unit normalizer works on a pasted or uploaded table. You choose the column, the target unit (mm, cm, m, in, ft; mg, g, kg, oz, lb; ml, cl, dl, l, fl oz, gal), 0 to 3 decimals and the decimal mark. It adds a new column next to the original, such as weight_g, and exports CSV, Excel or JSON. Three things to know: it treats fl oz and gal as US units, it reads a comma between two digits as a decimal mark, and it leaves a value empty when it has no unit or a unit of another kind.

Where the units come from in the first place is a matter of the request you send: the supplier product data template asks for number and unit in every measure, and product data onboarding shows the step in a whole file.

Before and after#

Values as a supplier of the fictional brand Northpeak might send them:

Supplier valueProblemNormalizedNote
14.1 ozOunces400 g399.73 g, rounded
0,41 kgDecimal comma, kilograms410 g
85gNo space85 g
2 lbs 3 ozTwo units in one value992 g907.18 g + 85.05 g. Convert by hand; the tool leaves it empty
29.9 inInches76 cm759.46 mm
10"A mark as unit254 mm
6.2 x 4.1 x 3.8 cmThree values in one cell62 mm, 41 mm, 38 mmSplit into three columns first
1.5 Ltr.An abbreviation1500 mlReplace Ltr. with l first
16 fl ozUS or UK not statedHeld473 ml if US, 455 ml if UK
72No unitHeldAsk the supplier

Common mistakes#

Converting back and forth. Inches to centimeters and back to inches adds a rounding error each time. Keep the original and convert from it.

The unit only in the column header. A column named "Weight (kg)" loses its unit on the first export. Put the unit in the cell or in its own column.

Product weight sent as shipping weight. OpenAI asks for net weight without packaging, Google's shipping weight is the basis for the shipping cost. They are two fields with two values.

Where Central helps#

Central researches measurements such as weight, dimensions and net quantity in your own data, on the open web and in verified databases, and backs every value with sources you can check. A value the sources do not support, such as a number without a unit, is held back and not guessed. From the verified record, Central writes titles, descriptions and attributes within each channel's limits and flags texts when a fact behind them changes.

See it on your own products

Questions

How many millimeters are in an inch?

Exactly 25.4. NIST marks the factor as exact, so 10 inches are 254 mm and 29.9 inches are 759.46 mm, or 76 cm rounded to whole centimeters.

Is a US fluid ounce the same as a UK fluid ounce?

No. NIST gives 29.57353 ml for the US fluid ounce and 28.41306 ml for the UK (imperial) fluid ounce. The US gallon is 3.785412 liters, the UK gallon exactly 4.54609 liters. Ask the supplier which one is meant before you convert.

Should there be a space between the number and the unit?

Yes, in the form you store and show: NIST's Guide to the SI writes 410 g and 30.2 °C, with a space, no plural s and no period after the symbol. Feeds can differ: Google's own example for unit pricing is 750ml without a space.

Which units does Google Merchant Center accept for weight and dimensions?

As of November 2026, lb, oz, g and kg for product_weight and shipping_weight, and cm and in for the product and shipping dimensions. All dimensions of a product must use the same unit, and Google does not list millimeters for them.

Do I have to use metric units when I sell in the EU?

Council Directive 80/181/EEC says the legal units that must be used for expressing quantities are those of its Annex, Chapter I, which are the SI units with a few additions such as the liter. Other units may be added as supplementary indications in characters no larger than the metric value. The directive is addressed to the Member States, so national law applies; this is not legal advice.

Sources

  1. NIST Guide to the SI (SP 811), Appendix B.8: Factors for units listed alphabeticallyNational Institute of Standards and Technologychecked 23 November 2026
  2. NIST Guide to the SI (SP 811), footnotesNational Institute of Standards and Technologychecked 23 November 2026
  3. NIST Guide to the SI (SP 811), Chapter 6: Rules and style conventions for printing and using unitsNational Institute of Standards and Technologychecked 23 November 2026
  4. NIST Guide to the SI (SP 811), Chapter 7: Rules and style conventions for expressing values of quantitiesNational Institute of Standards and Technologychecked 23 November 2026
  5. NIST Guide to the SI (SP 811), Chapter 10: More on printing and using symbols and numbersNational Institute of Standards and Technologychecked 23 November 2026
  6. Resolution 10 of the 22nd CGPM (2003): Symbol for the decimal markerBureau International des Poids et Mesures (BIPM)checked 23 November 2026
  7. Council Directive 80/181/EEC on units of measurement, consolidated version of 13 June 2020EUR-Lexchecked 23 November 2026
  8. Units of measurementEuropean Commissionchecked 23 November 2026
  9. Weights and Measures Act 1985, Schedule 1: Definitions of units of measurementlegislation.gov.ukchecked 23 November 2026
  10. Product data specificationGoogle Merchant Center Helpchecked 23 November 2026
  11. Product length, width, height and weight attributesGoogle Merchant Center Helpchecked 23 November 2026
  12. Shipping weight [shipping_weight]Google Merchant Center Helpchecked 23 November 2026
  13. Shipping length, width and heightGoogle Merchant Center Helpchecked 23 November 2026
  14. Unit pricing measure [unit_pricing_measure]Google Merchant Center Helpchecked 23 November 2026
  15. Unit pricing base measure [unit_pricing_base_measure]Google Merchant Center Helpchecked 23 November 2026
  16. Product feed schemaOpenAI developer docschecked 23 November 2026
  17. Inventory API specificationeBay Developers Programchecked 23 November 2026

More on this topic

Product data and files

You choose what goes in and where it goes out.

Central AI does everything in between. Your first 3 products are free.

  1. Your inputYour shop, your files or your product pages.
  2. Central AIResearches, verifies and writes everything in between. Every value is backed by sources you can check; what the sources do not support is held back.
  3. Your channelsProduct data and listings for the channels you choose.