Local XLSX tools

Remove duplicate rows from XLSX

Preview duplicate rows in a supported XLSX range, choose matching columns and remove repeats. Review the change and save an edited workbook locally.

Start with your workbook

XLSX · 128 MiB combined limit · Files stay in your browser

  1. Choose an XLSX workbook
  2. Choose columns and review duplicate rows before applying removal
  3. Save the edited XLSX workbook

Review repeated rows before removing them

Choose the columns used to identify repeated rows and inspect the removal preview before applying it.

For example, clean repeated inventory records while keeping the other worksheets in your source workbook.

How it works

  1. Choose an XLSX workbook.
  2. Select a sheet and duplicate-key columns, then review the duplicate preview.
  3. Apply removal and save the edited XLSX workbook.

Output and limitations

Duplicate removal changes worksheet rows. Some workbook references or unsupported source features can prevent safe removal; diagnostics explain blocked changes.

Keep a copy of your original workbook and review downloaded results before using them.

Other ways to work with this Excel task

Run these examples on your own computer with copies of your files. The commands are separate alternatives to the browser tool; their type handling and workbook preservation can differ.

Remove duplicate Excel records with Python

Keep the first data row for each complete typed row and write a separate values-only workbook.

Before you start

  • Install Python 3. Create the environment below, save the Python example as task.py, then run .venv/bin/python task.py in the folder containing input.xlsx. On Windows, use py -m venv .venv and .venv\Scripts\python.exe in place of .venv/bin/python. Replace Inventory with your worksheet name.
Set up Python environment
python3 -m venv .venv
.venv/bin/python -m pip install openpyxl

Python task.py
from openpyxl import Workbook
from openpyxl import load_workbook

workbook = load_workbook("input.xlsx", read_only=True, data_only=True)
sheet = workbook["Inventory"]

rows = sheet.iter_rows(values_only=True)
output = Workbook()
target = output.active
target.title = "Inventory"
target.append(next(rows))
seen = set()
for row in rows:
    key = tuple((type(value).__name__, value) for value in row)
    if key not in seen:
        seen.add(key)
        target.append(row)
workbook.close()
output.save("deduplicated.xlsx")

Run the saved example
.venv/bin/python task.py

Limits and output

  • These data recipes use saved cell results, not recalculated formulas. They do not copy charts, styles, macros or workbook relationships. Keep the original file.
  • The first row is retained as a header. This compares the entire row, with numeric and text values distinct; change the key explicitly for selected-column matching. It does not safely remove rows from a complex source workbook. Review formula-looking source text before writing it.

Documentation: openpyxl tutorial and workbook loading options

Frequently asked questions

Can I review the rows before removing them?

Yes. Choose the comparison columns and review the duplicate preview before applying removal.

Does it create a CSV file?

No. This task applies supported row removal in the source workbook. Save XLSX for the edited workbook, or use Excel to CSV for a data export.

Is my workbook uploaded to a server?

The anonymous browser file tools process workbook contents locally. The website still makes ordinary requests for pages and sample files. Read the privacy page for details.

Which Excel files can I open?

Choose XLSX files with a combined size of 128 MiB or less for the editor and workbook transformations. Legacy XLS files and password-protected or encrypted workbooks are not supported.

Read the privacy policy

Related workbook tools