Tools·3 min read

Clean Headers

Standardize messy column headers into a clean, consistent format like "first_name" or "company_email".

By Operelio team

On this page7
  1. 1.What it does
  2. 2.When to use it
  3. 3.Cleaning rules
  4. 4.Before and after examples
  5. 5.How to use it
  6. 6.What the results show
  7. 7.Frequently asked questions

What it does

Operelio converts your column headers into a consistent, machine-friendly format. Spaces become underscores. Special characters get stripped. Names go lowercase. Duplicates get a numbered suffix.

When to use it

Use this when your column headers are inconsistent and you need them clean before importing into a database, CRM, or another tool. Messy headers with spaces, special characters, or mixed casing cause import errors. This tool fixes all of that in one pass.

Cleaning rules

Operelio applies these rules to every header, in order:

1

Trim whitespace

Leading and trailing spaces are removed.

2

Lowercase

All characters are converted to lowercase.

3

Replace whitespace and hyphens

Spaces, tabs, and hyphens become underscores. Multiple in a row collapse to one.

4

Strip special characters

Anything that is not a letter, number, or underscore is removed.

5

Collapse underscores

Multiple consecutive underscores become a single underscore.

6

Strip edge underscores

Leading and trailing underscores are removed.

7

Handle empties

If a header becomes empty after cleaning, it is renamed to "column".

8

Suffix duplicates

If two or more headers end up with the same name, suffixes are added: _2, _3, and so on. Both columns are kept; nothing is removed.

Before and after examples

Original headerCleaned header
First Namefirst_name
Email Address email_address
Company (HQ)company_hq
Phone #phone
Namename
Namename_2
---column

The two "Name" rows show the suffix rule: when two columns share the same cleaned name, the second gets "_2" added so both columns are kept. The last row, "---", shows the empty-fallback rule: a header with only special characters cleans to "column".

How to use it

1

Upload your file

Any .xlsx, .xls, or .csv file.

2

Preview changes

A before/after table shows what each header will become. Review the changes before running.

3

Run

Click Clean headers. Download the file with the cleaned header row.

What the results show

The results page shows a summary of how many headers were renamed, unchanged, and suffixed. You'll see a stat grid with totals, a before-and-after list of every header change, and a Copy cleaned headers button to grab the new names. Your row data is untouched. Only the header row changes.

Frequently asked questions

Does it change the data in my rows?

No. Only the header row is modified. All data rows stay exactly as they are.

What plan do I need?

Clean Headers is available on all plans, including Free.

Can I use it with Excel?

Yes. Upload .csv, .xlsx, or .xls files. Pro, Team, and Agency keep your input format; Free returns CSV only.

Why do CRMs need clean headers?

Most CRM import tools match columns by exact header name. Headers with extra spaces, special characters, or mixed casing won't match. Clean headers make the import automatic.

Ready to get started?

Upload a file and run your first transformation. Free, no credit card required.