Salesforce Metadata Compare

Paste the same metadata file from two orgs or two branches — see what is only in one, only in the other, or set differently.

Runs in your browser — nothing you paste is sent to us or stored.

How to use it

  1. 1

    Retrieve the same file twice

    Get the XML of one component from both orgs — or from two Git branches — with the Salesforce CLI, VS Code or Workbench.

  2. 2

    Paste or open both

    Source on the left (where the change was made, e.g. the sandbox), target on the right (e.g. production). Swap flips them.

  3. 3

    Read and export the differences

    Filter by what’s only in one side or set differently, search for a field or object, and download a CSV for your release notes or review.

Questions

Why not just use a text diff?

Salesforce doesn’t keep repeated elements in a fixed order, and two retrieves of the same profile can list fieldPermissions in a different sequence or with different spacing — a text diff then shows hundreds of lines that aren’t real changes. This tool matches each item by what Salesforce identifies it by (fieldPermissions by field, objectPermissions by object, fields and picklist values by fullName, flow elements by name, package.xml members as a set), so only real differences are listed.

How do I get the XML from two orgs?

With the Salesforce CLI, run sf project retrieve start --metadata "PermissionSet:Sales_Ops" --target-org sandbox, copy the file, then run the same command with --target-org pointing at production. In VS Code, right-click the file and choose SFDX: Retrieve This Source from Org. Workbench’s Retrieve also works and gives you a zip of the XML files.

Why is a field missing from my profile file?

A retrieved profile only contains permissions for the components in the same retrieve request. If you retrieve the Profile on its own, many fieldPermissions and objectPermissions are left out. Retrieve the profile together with the objects and fields you care about — and do it the same way in both orgs — or the differences will mostly be about what was retrieved, not what’s set.

Which metadata types does it work with?

Any metadata XML: profiles, permission sets, permission set groups, custom objects and fields, record types, page layouts, flows, custom metadata records, sharing rules and package.xml. Both sides must be the same type. In source format an object is split into one file per field, record type and so on — compare those file by file.

What do “only in source”, “only in target” and “different” mean?

“Only in source” is something the target doesn’t have — deploying the source would add it. “Only in target” is something the source doesn’t have; a normal deploy leaves it in place, so remove it by hand or with a destructive change if it should go. “Different” is an item both have with a different value, such as editable true in one and false in the other.

Is my metadata sent anywhere?

No. Files you paste or open are read and compared in your browser; the tool doesn’t connect to any org and nothing is uploaded.

Further reading

Want to go beyond the tools?

Learn Salesforce administration — from beginner to certified — live classes with people who build on Salesforce every day.

See the learning path →