Suppliers send measurement data in different units — one uses grams, another kilograms, a third uses pounds. FeedPrep's measurement normalization converts all values to your preferred target unit automatically using a two-step process.

Step 1: Unit Extraction

Before any conversion can happen, FeedPrep needs to separate the numeric value from its unit. The unit extraction step parses raw strings and breaks them into structured components.

Examples of parsed values:

Raw StringExtracted ValueExtracted Unit
1850g1850g
1.85 kg1.85kg
40 cm40cm
15.7 inches15.7inches
500ml500ml

The parser uses pattern matching to identify a number followed by optional whitespace and a unit abbreviation. It handles integers, decimals, and common formatting variations.

Step 2: Measurement Normalization

Once a value and unit are extracted, FeedPrep converts the value to the target unit defined for that attribute. The target unit is specified either in the attribute definition in your schema or via normalization rules.

InputTarget UnitConverted Output
1850 gkg1.85 kg
40 cmmm400 mm
15.7 inchesmm399 mm
5.5 lbskg2.49 kg
500 mll0.5 l

Supported Unit Families

FeedPrep supports conversion across the following unit families:

Length

mm, cm, m, km, in, inch, inches, ft

Weight

g, kg, lb, lbs, oz

Volume

ml, cl, l

Conversions only work within the same family — you can convert grams to kilograms, but not grams to centimeters.

Target Unit Configuration

The target unit for each measurement attribute can be defined in two places:

Export Flexibility

After conversion, the numeric value and unit are stored separately. This gives you flexibility at export time:

This is especially useful when integrating with PIM systems or marketplaces that expect value and unit in separate fields.

Consistent Units Across Every Supplier

FeedPrep extracts and converts measurements automatically so your product data is always in the right unit.

Start Free Trial