# Compare Two Lists > Compare two lists with a list comparison tool that returns combined unique values and list differences. Choose case-sensitive matching and copy each result. u003cpu003eu003cstrongu003eCompare two listsu003c/strongu003e to find values unique to either side and obtain a combined set of distinct entries. This list comparison tool helps review changes between exported labels, inventory codes, or keyword lists.u003c/pu003e ## Overview & Metadata - **Canonical URL:** https://million.tools/compare-two-lists/ - **Markdown Copy (.md.txt):** https://million.tools/compare-two-lists.md.txt - **Plain Text Copy (.txt):** https://million.tools/compare-two-lists.txt - **API Endpoint:** https://million.tools/api/v1/run/compare-two-lists (POST, Keyless, 60 req/min) - **SEO Title:** Compare 2 Lists Online | Unique Values and Differences - **Alternative Names:** List Differences, Compare List Values, list comparison tool, unique list values, compare lists online - **Category:** [Merge and split](https://million.tools/merge-and-split/) - **Tags:** [#JSON](https://million.tools/tag/json/) - **Application Category:** `UtilitiesApplication` - **Platform:** Web (All modern desktop and mobile browsers, requires JavaScript) - **Price:** Free ($0.00 USD, no registration or sign-up required) - **Live Calculation:** Supported (`Auto / Live` toggle enabled by default) - **Usage Statistics:** 10 uses · 526 views - **Published:** 2026-10-30 - **Last Updated:** 2026-11-23 - **Author:** Egor Volchenko (Developer & Author) ## Key Features - Return combined unique values from both lists - List values unique to each input - Choose case-sensitive comparison - Display union and difference counts - Copy each result output - Clear text fields without resetting options ## Parameters & Interface Controls ### Input Parameters & Options - `input_text`: First list. - `needle`: Second list. - `case_sensivity`: Boolean. Case-sensitive. ### Output Fields & Metrics - `first_unique`: Only in the first list. - `second_unique`: Only in the second list. - `result`: Matches in both lists. - **Metric:** `No matching rows` - **Metric:** `Matches` - **Controls:** `Compare`, `Clear`, `Copy`, `Fill test data`, `Auto / Live` ## Interactive Example (Test Vector) **Settings:** - Second list: `Banana Cherry Pear` **First list:** ```text Apple Banana Cherry ``` **Only in the first list:** ```text APPLE ``` **Only in the second list:** ```text PEAR ``` **Matches in both lists:** ```text APPLE BANANA CHERRY PEAR ``` - **No matching rows:** `2` - **Matches:** `4` ## How to use Compare Two Lists Compare membership across both complete lists, then inspect the combined values and the entries unique to each side. ### List Differences 1. **Enter the source:** Paste one value per line into *First list* and *Second list*. Row order does not determine whether a value belongs to both sets. 2. **Choose the settings:** Select *Case-sensitive* to distinguish uppercase and lowercase values. With it off, values are converted to uppercase for comparison and output. 3. **Run the tool:** Click *Compare* to process the current input. 4. **Review the output:** Review *Only in the first list* and *Only in the second list*. The field labeled *Matches in both lists* actually contains the combined unique values, including values present in only one input. 5. **Copy or clear:** Click *Copy* under the output you want to keep. Use *Clear* where shown to clear the text fields; option selections stay as set. For `Apple` and `Banana` in First list, and `Banana` and `Pear` in Second list, the default combined output is `APPLE`, `BANANA`, `PEAR`. The first-only value is `APPLE`; the second-only value is `PEAR`. ### Understand the result labels Matches in both lists is a union, not an intersection. The Matches counter counts that union. No [matching rows](https://million.tools/compare-two-columns/) counts values unique to either side, rather than counting all input rows. ### Membership comparison ignores row position The returned sets are sorted and repeated values appear once in each result. Use corresponding-row comparison when the position of a value matters. Spaces remain significant; there is no trim-spaces control. ## Frequently asked questions ### Does Matches in both lists show only shared items? No. Despite its label, this field returns all distinct values from either input. Do not use it as an intersection result. ### What do the two unique-side fields contain? Only in the first list contains values absent from the second. Only in the second list contains values absent from the first. ### Why did my output change to uppercase? Case-sensitive is off by default. In that mode the tool uppercases the values before creating and sorting the result sets. ### Do repeated entries count more than once? No. Each returned set contains distinct comparison values. This tool compares membership rather than reporting occurrence frequencies. ### Does changing row order affect list differences? No. Membership is compared across each entire list. Leading or trailing spaces can still make two values different. ## Related Tools - [List Formatting](https://million.tools/list-formatter/): Use list formatting to clean list text. Remove punctuation from a list, remove empty rows, or remove double spaces, then review the replacement count. - [Replace Spaces with Line Breaks](https://million.tools/replace-spaces-with-line-breaks/): Replace spaces with line breaks to put one word per line. Use spaces to newlines conversion with optional capitalization and copy the resulting list. - [Replace Line Breaks with Spaces](https://million.tools/replace-line-breaks-with-spaces/): Replace line breaks with spaces to join text lines. Remove line breaks from pasted lists with optional lowercase conversion, then copy the single-line result. - [Repeat Text](https://million.tools/repeat-text/): Repeat text with a text repeater. Duplicate text a specified number of times, separate copies with line breaks or commas, and copy the result. - [Divide a List into Groups](https://million.tools/split-list-into-groups/): Divide a list into groups after shuffling the entries. Create fixed-size groups or random-sized groups, then copy the groups separated by blank lines. ## About the Author **Egor Volchenko** — *Developer & Author* Hi! I’m a WordPress developer with over 10 years of experience. I love Tailwind CSS, clean code, and intuitive interfaces. I’m currently working on million.tools — a service with convenient online tools for everyday tasks. I’m building it from scratch with great attention to detail and user experience. - **Links:** [x.com](https://x.com/egorleet) · [github.com](https://github.com/egorleet) · [t.me](https://t.me/egorleet) · [instagram.com](https://www.instagram.com/egorleet) · [facebook.com](https://www.facebook.com/egorleet/) · [egorleet.blog](https://egorleet.blog/) · [mastodon.social](https://mastodon.social/@egorleet) · [twitch.tv](https://www.twitch.tv/egorvolchenko) · [stackoverflow.com](https://stackoverflow.com/users/31679135/egor-volchenko) · [reddit.com](https://www.reddit.com/user/Vegetable_Window9185/) · [youtube.com](https://youtube.com/@egor-volchenko)