DiffLists.com

Compare lists online

Everything runs locally in your browser — nothing is uploaded.

Use our free online tool to compare lists from different sources. Paste two lists below (or drag & drop a file onto them) and the result updates automatically. Use the Output Options panel to fine-tune how lines are matched and how the result is formatted.

List 1

0

List 2

0
Output Options
Results also update automatically as you type.
Result
difference - 1 only

Difference - 1 only

0
difference - 2 only

Difference - 2 only

0
intersection

A ∩ B - Intersection

0
union

A ∪ B - Union

0
symmetric difference

Δ - Symmetric difference

0

Tips for using the list comparison tool

With this online tool you can compare lists of words and lists of numbers. I didn't add any unnecessary functionality to the tool. Only the comparison of lists — plus a set of small helpers to prepare your lists and export the result.

Operations including:

  • Set Differences
  • Set Intersections (AND)
  • Set Unions (OR)
  • Symmetric difference

You can compare lists with or without case sensitivity, ignore leading/trailing or extra spaces, and ignore leading zeros on numeric values — use the Output Options panel above the "Compare lists" button. Results update automatically as you type, but you can also click "Compare lists" to jump straight to them.

Use the "Split", "Remove blanks", "Remove dupes", "Trim & dedupe" and "Sort" buttons to prepare a list before comparing, "Swap" to switch List 1 and List 2, and "Upload" (or drag & drop a file onto a box) to load a list from a text file. On the result side, use "Send to" to feed a result back into List 1 or List 2, and "Download" to save it as a .txt file. Choose an output format (numbered, Markdown, HTML, JSON, hashtags, quoted) if you need the result in a specific shape.

The tool works on desktops and smartphones, and supports a dark theme (top-right toggle). I hope you will find this tool useful.

Frequently asked questions

How do I find items that are in one list but not another?

Paste your data into List 1 and List 2. The result section updates automatically and shows five panels: "Difference - 1 only" and "Difference - 2 only" for items unique to each side, "Intersection" for items shared by both, "Union" for everything combined, and "Symmetric difference" for everything that isn't shared.

Can I upload a file instead of pasting text?

Yes. Click the "Upload" button above either list to pick a file, or just drag a file and drop it anywhere onto the list box — it loads automatically. Supported formats are plain text: .txt, .csv, .tsv, .log, .md, and similar.

Can I sort my lists or the results?

Each list has a "Sort" button that toggles between A→Z and Z→A. If every line in the list is a number, it sorts numerically instead of alphabetically, so "2" comes before "10". You can also set a separate sort order (A→Z, Z→A, 0→9, 9→0) for the comparison results themselves in the Output Options panel, independent of how you sorted the inputs.

Can I compare lists case-insensitively?

Yes. "Case Sensitive" is enabled by default in Output Options. Uncheck it and "Apple" and "apple" will be treated as the same item.

What's the difference between intersection, union, and symmetric difference?

Intersection (A ∩ B) is only the items that appear in both lists. Union (A ∪ B) is every unique item from both lists combined. Symmetric difference (Δ) is everything that appears in only one list or the other, but not both — in other words, the "1 only" and "2 only" results combined.

Can I compare lists that have extra or leading/trailing spaces?

Yes. "Ignore Leading/Trailing Spaces" is on by default and trims each line before comparing. Turn on "Ignore Extra Spaces" as well if you also want repeated spaces inside a line collapsed to one, so " New  York " and "New York" match.

Can I compare numbers that have leading zeros?

Yes. Turn on "Ignore Leading Zeros" in Output Options so "007" and "7" are treated as equal.

Is my data stored or sent anywhere?

No. The list comparison itself runs locally in your browser. The contents of your lists are not uploaded to or processed by our servers.

What output formats are available for the results?

The "Output format" dropdown in Options controls all five result panels at once: Plain (one item per line), Numbered, Markdown Bullets, HTML <ul>, HTML <ol>, Hashtags, JSON Array, and Quoted (each item wrapped in double quotes, useful for SQL or config files).

Do I need to click a button to see results?

No. Results update automatically as you type or change any option. The "Compare lists" button is only there to jump straight down to the results — handy on longer pages or mobile.

Can I clean up a list before comparing?

Yes. Each list has its own "Remove blanks" (strips empty lines), "Remove dupes" (drops repeated lines, keeping the first occurrence), and "Trim & dedupe" (trims whitespace and removes duplicates in one click) buttons, plus a "Split" button to break a single line of comma/semicolon/tab/space-separated values into one item per line.

Does this work on mobile, and is there a dark mode?

Yes to both. The layout adapts to smaller screens, and you can switch to a dark theme with the toggle in the top-right corner — your choice is remembered for next time.

```html

Privacy Policy

All list comparisons and differences are performed locally in your browser using JavaScript. The contents of your lists are not uploaded to, stored on, or processed by our servers. Your list data remains in your browser and is not transmitted to our server for comparison.

Terms of Use

Free and Unlimited Use: Our tool is free to use and does not require an account. You may use it as often as you need.

Liability: We are not responsible for any actions or decisions you make based on the results provided by our tool. While we strive to provide accurate and reliable results, the tool is provided without warranties or guarantees of any kind. You use the tool at your own risk, and we are not liable for any direct or indirect consequences resulting from its use.

```