Guide · Text Tools

How to Clean Inconsistent Names with OpenRefine

A supplier column can contain several spellings of one company. This walkthrough shows how to clean inconsistent names with OpenRefine and export a reviewed CSV. You need the free desktop app and a source file. Allow one short session for setup; reviewing ambiguous names takes as long as the data demands.

Several varied paper labels converge into one tidy stack.
On this page

1. Import the name column into a project #

Start OpenRefine and choose Create Project. Select the CSV through Browse…, then choose Next >>. In the preview, check Parse data as and confirm that names and other fields occupy separate columns. Finish with Create Project (import documentation).

Check the header row and a few records before editing. An incorrectly parsed file can make a name look like several fields, especially when a company name includes a comma. Fix the import settings while you still have the preview in front of you.

OpenRefine copies the source into a project. Its changes won't overwrite the CSV you imported. Give the project a name that identifies the source and cleanup task, so you can recognize it when another export arrives.

2. Inspect the names before choosing replacements #

Open the name column's menu and select Facet → Text facet. The facet lists values and counts, making repeated variants easier to inspect (facet documentation).

For a hypothetical supplier file, you might see North Harbor Studio, North Harbor Studio and NORTH HARBOR STUDIO. A separate value such as North Harbor Studio West deserves a closer look: it might identify a branch, a different company or a longer official name.

Use the other columns to resolve that question. An address, supplier ID or website can provide more context than the name alone. Decide which column holds the label you're standardizing, and which columns must retain their original values.

Make a short list of naming decisions outside the project if another person needs to approve them. For instance, a legal entity name and a trading name may both be valid. Consistency means applying an agreed rule, and the correct rule depends on the receiving system.

3. Remove stray spaces #

In the column menu, choose Edit cells → Common transforms → Trim leading and trailing whitespace. Then use Collapse consecutive whitespace if repeated spaces are unwanted (cell-editing documentation).

Review the facet again. Values that differed only through stray spaces should now appear under one spelling. This preliminary cleanup keeps the later clustering review focused on differences that need a decision.

Don't force every name into title case as a shortcut. Abbreviations, brand spellings and initials can lose their intended form. Choose one canonical spelling when reviewing each group instead.

4. Open the clustering review #

Choose Edit cells → Cluster and edit from the same column menu. Start with Key Collision and Fingerprint. OpenRefine presents proposed groups and lets you choose an existing spelling or enter a replacement.

Fingerprint compares simplified forms of text, so punctuation, capitalization, accents and word order can stop keeping two values apart. A suggested group therefore needs your approval before its names change.

Review one group at a time. If ABC Services and ABC Service represent one supplier, choose the agreed spelling. If two similar names belong to separate suppliers, leave that group unselected. A supplier ID that disagrees is a reason to investigate, even when the names look almost identical.

5. Merge only the groups you approve #

Select the confirmed groups and choose Merge selected & re-cluster. Check the next proposals, then return to the text facet to inspect the revised vocabulary.

Keep the review small enough to explain. A batch of obvious capitalization variants is easier to approve than a mixed batch containing abbreviations, translated names and branch labels. If uncertainty remains, leave those names unchanged and ask the person responsible for the records.

Clustering changes values; it doesn't automatically prove that entire rows are duplicates. Two orders from one supplier should retain two rows even after their supplier names match. Treat row removal as a separate decision with its own matching rule.

6. Check the history and the finished column #

Use the project's Undo/Redo history if an approved operation needs reversing (project history). Return to the facet and inspect the names affected by your latest merge.

Check several ordinary records as well as the edited ones. You want consistent names while keeping IDs, dates and other fields intact. Record any deliberately unresolved values for whoever receives the file.

Before export, clear the facet selections and other filters if the delivery needs every row. Seeing only a selected supplier on screen can be helpful during review, but it can also leave you preparing an incomplete handoff.

7. Export the complete CSV #

Choose Export → Comma-separated value (CSV). OpenRefine's export documentation says many exports follow the current filtered view. Confirm that the view contains the intended records before saving.

Open the result in a CSV-aware editor or LibreOffice with the appropriate import settings. Check the headers, total rows, edited names and a few names containing accents or commas. Name the output so the original and cleaned files are easy to distinguish.

If a colleague needs to continue the cleanup, give them a project export as well as the CSV. The CSV is the dataset to import elsewhere; the project carries the work needed to revisit your decisions.

Known problems and their fixes #

Clustering waits instead of starting immediately

In a March 2025 forum discussion, a developer explained that OpenRefine 3.9 changed clustering to start manually by default. The Auto-start checkbox restores automatic processing. Check that setting when switching methods appears to do nothing.

A facet or merge throws a Java exception

The RDF Transform extension investigation traced errors during faceting and merging to an extension/library interaction. If that extension is installed, check its current version and isolate it while diagnosing the error. Include the logs and extension versions in a support report; repeated merge attempts won't resolve a library conflict.

ProblemLikely causeFix
No proposals after changing methodsManual clustering start is enabledCheck Auto-start, or start the selected method manually
Similar names remain separateThe method doesn't group that variationReview another documented method, approving groups individually
Names merged incorrectlyA suggested match was approved without enough contextReturn through Undo/Redo and compare IDs or addresses
Export contains fewer rowsA facet/filter still restricts the viewClear selections and export again
Java error during a mergePossible extension interactionReview extensions and logs before retrying

Standardize category labels

Use the same facet-and-review process for tags or categories. Agree on a preferred vocabulary first. Otherwise, two editors can independently clean the column into different sets of labels.

Correct one known spelling

If you already know the wrong value, a facet edit can replace all matching cells without a clustering pass. For simple direct changes, Modern CSV is another option; our comparison explains where its free edition ends.

Prepare a recurring import

Keep the project and review its operation history when the next source file arrives. Reused cleanup steps still need a check against the new data: a naming rule that worked last month may encounter a new supplier this month.

Completion checklist #

  • The import places every field in the correct column.
  • Each approved group represents the same intended name.
  • Uncertain matches remain unchanged.
  • The output contains the intended rows and headers.
  • Accents, punctuation and identifiers survive export.
  • The recipient knows which names still need review.

For other editing workflows, browse the best free CSV editors and Online Tools category. Read OpenRefine vs Modern CSV before choosing between a cleanup project and direct grid editing.

Featured illustration: original conceptual artwork created for WebIndexly with OpenAI image generation.

C
Chris McClureCo-founder & Editor, WebIndexly

Chris McClure is a tech blogger and co-founder of WebIndexly, with a strong interest in SEO, web architecture, user experience and the technologies that shape the modern web. He focuses on making complex technical topics easier to understand and more useful for developers, creators and businesses…