Getting started

How to Convert All Your Existing Recipes to Metric or US at Once

Convert Units fills in the US/Metric conversions for all your existing recipes in one go, so you don’t have to open each recipe and click Convert All Ingredients. It finds every recipe card on your site, shows you which unit system each one is written in, lets you check every converted amount before anything changes, and can undo the whole run.

Use it when you turn on Unit Conversion on a site that already has many recipes, for example a blog with hundreds of recipes in cups and tablespoons.

Convert Units is a premium feature, available with the Professional or Business license, for Editors and Administrators.


Table of Contents

  1. Before you start
  2. Scan your recipes
  3. Preview the conversions
  4. Review and edit a recipe
  5. Apply the conversions
  6. Undo a conversion run
  7. What the warnings mean
  8. For developers: WP-CLI commands

Before you start

  1. Go to Recipe Cards → Settings → General → Unit Conversion, check Enable Unit Conversion and choose the Unit System most of your recipes are written in. See How to Enable Unit Conversion for Ingredients.
  2. Open Recipe Cards → Convert Units. You can also get there with the Convert existing recipes button in the Unit Conversion settings.
Convert Units in the Recipe Cards menu
The Convert existing recipes button in the Unit Conversion settings

Ingredients need the amount and unit in their own fields. An amount typed into the ingredient name (“2 cups flour”) can’t be converted; the scan points these out.


Scan your recipes

Click Scan recipes. Convert Units checks every recipe card on your site — in recipes, posts and pages, including drafts and scheduled posts — and lists them.

The Convert Recipe Units page before the scan

For each recipe you see:

  • Written in — the unit system the recipe is written in. It’s worked out from the ingredient units (and oven temperatures like 350°F or 180°C in the directions), with the system the recipe is set to shown below it. Ingredients are converted to the other system, so change it here if it’s wrong.
  • Ingredients — how many ingredients with a convertible unit already have a converted amount.
  • Status — Ready to convert, Partly converted, Already converted, Converted, switcher off, Nothing to convert (no cups, grams or similar units), Needs review or Being edited (someone has it open in the editor).
The scan results with recipes ready to convert, partly converted, needing review and already converted

Recipes that are ready or partly converted are selected automatically. Recipes marked Needs review are not: read the note under the status, and select the recipe yourself once you’ve checked it. See What the warnings mean.

A recipe that needs review: its ingredients are metric but the recipe is set to US

Use the Show filter to list only the recipes that need review, the ones you’ve previewed, or the ones already converted.


Preview the conversions

  1. Choose how to convert: – Standard — the same conversion as Convert All Ingredients in the editor. – AI — the same as Convert with AI. It’s better for ingredient names that aren’t in English. It’s free with your license.
  2. Leave Turn on the US/Metric switcher on the converted recipes checked, so readers can switch between the two systems once the recipe is converted.
  3. Click Preview selected.

The preview runs one recipe at a time, with a progress bar and a Pause button. It doesn’t change your recipes: the converted amounts are saved for you to review, and they’re still there if you leave the page and scan again later.

Each previewed recipe shows how many amounts it will convert and how many need a check.

The toolbar with Preview selected, Include recipes with warnings and Apply previewed

Review and edit a recipe

Click Review next to a previewed recipe to see each ingredient with its original amount and the converted amount and unit.

The review of Classic Banana Bread: 2 cups flour becomes 250 g, 1/3 cup milk becomes 80 ml
  • The converted amount and unit are text fields: type over anything you’d measure differently, in any language.
  • Reads the same in both systems — teaspoons, tablespoons and units like pinch or can are kept as they are.
  • Already converted, kept as it is — amounts you converted or typed before. They are never overwritten.
  • Rows highlighted in yellow need a check: an amount the converter couldn’t work out, a weight converted by volume because the ingredient’s weight wasn’t found, or a range such as 1-2 tsp that is left for you to fill in.
A range left empty for you to fill in: 1-2 tsp chili flakes, typed as 1 tsp

Ingredients without an amount or a unit, such as 3 eggs, aren’t listed: they read the same in both systems.

When the recipe looks right, click Apply to recipe. Changed your mind about Written in? Pick the other system and click Preview again.


Apply the conversions

You can apply recipes one at a time with Apply to recipe, or all at once:

  1. Click Apply previewed. The number on the button shows how many recipes it will update.
  2. By default only previews without warnings are applied. To apply the recipes with warnings too, check Include recipes with warnings — amounts that couldn’t be converted stay empty, and you can fill them in later in the editor.
  3. Confirm. Recipes are updated one at a time, with a progress bar.
Include recipes with warnings checked: Apply previewed (5)

Applying a recipe:

  • fills in only the converted amounts that are still empty — nothing you typed is overwritten;
  • sets the recipe’s unit system to the Written in system and turns on the US/Metric switcher (unless you unchecked that option);
  • updates the recipe’s copy in its post too, when the recipe was created inside a post;
  • keeps the post’s last modified date.

A recipe that someone has open in the editor, or that was edited after you previewed it, is skipped with a message: preview it again and apply.

On your site, readers can now switch the recipe between the two systems:

The converted recipe on the front end, switched to Metric

If you use a page cache plugin, clear its cache after applying so visitors see the switcher.


Undo a conversion run

The top of the Convert Units page shows your last run, with an Undo last run button. It restores every recipe changed in that run — everything you applied since you opened the page.

Last conversion run, with the Undo last run button

Recipes edited after the conversion are left as they are, so undo never throws away changes you made later.


What the warnings mean

Warning What to do
The ingredients look metric, but the recipe is set to US (or the other way round) Written in follows the ingredients. Check it’s right; applying updates the recipe’s setting to match.
Mixes US and metric units Units already in the other system are kept as they are. Check Written in.
An ingredient already has a conversion in its text, like “(120 g)” Converting would show the amount twice. Remove the note from the ingredient name first, or skip the recipe.
Converted amounts are in the same system as the originals The recipe’s unit system is probably wrong. Check Written in.
An amount is a range Ranges like 1-2 cups are left for you to fill in during the review.
An amount is typed in the ingredient name It can’t be converted. Move the amount to the Amount field in the editor first.
Damaged block markup The tool won’t change this post. Open it in the editor and check the recipe card.

For developers: WP-CLI commands

On large sites you can run the same scan, preview, apply and undo from the command line with WP-CLI. The commands work exactly like the Convert Units page: previews are stored, only empty amounts are filled in, and undo restores the last run. Run them as an administrator with --user.

# List every recipe card with its unit system and status
wp rcb unit-conversion scan --user=admin

# Preview the recipes that need no review (nothing in the recipes changes)
wp rcb unit-conversion preview --user=admin

# See what would be applied, then apply
wp rcb unit-conversion apply --user=admin --dry-run
wp rcb unit-conversion apply --user=admin

# Restore the recipes changed by the last apply
wp rcb unit-conversion undo --user=admin
Command Options
scan --ids=<ids> only these post IDs (comma-separated) · --state=<state> only none, partial, switcher, full or nothing · --format=<format> table, csv, json or count
preview --ids=<ids> · --written=<system> us or metric, the system the recipes are written in (default: detected per recipe) · --engine=<engine> standard or ai · --include-review also preview recipes that need review · --dry-run list without converting
apply --ids=<ids> · --include-warnings also apply previews with warnings · --switcher-off don’t turn on the US/Metric switcher · --dry-run · --yes skip the confirmation
undo --yes skip the confirmation

Each apply command is one run: undo restores the most recent run, whether it was applied from the command line or from the Convert Units page. Run wp help rcb unit-conversion for the full reference.


What’s Next?

Last updated on October 15, 2026