{"id":26,"date":"2026-10-25T06:42:32","date_gmt":"2026-10-25T06:42:32","guid":{"rendered":"https:\/\/tools.phledu.com\/blog\/?p=26"},"modified":"2026-10-30T12:40:53","modified_gmt":"2026-10-30T12:40:53","slug":"duplicate-line-remover-guide","status":"publish","type":"post","link":"https:\/\/tools.phledu.com\/blog\/duplicate-line-remover-guide\/","title":{"rendered":"Remove Duplicate Lines Online: Complete Guide"},"content":{"rendered":"\n<!-- duplicate-line-remover-guide | paste into a Custom HTML block. The theme prints the post title as H1. -->\n<div class=\"phl-en\"><p class=\"lead-p\">Need to <strong>remove duplicate lines<\/strong> from a list? Paste it into the free PHL Tools Duplicate Line Remover and get only the unique lines, in the original order. This complete guide explains every option: exact or case-insensitive matching, ignoring spaces, removing empty lines, trimming kept lines, and keeping the first or last copy. It works for keyword lists, emails, URLs, names and log files, shows how many duplicates were removed, and never uploads your list.<\/p><nav class=\"toc\" aria-label=\"Contents\"><strong>In this guide<\/strong><ol><li><a href=\"#en-why-remove-duplicate-lines\">Why Remove Duplicate Lines?<\/a><\/li><li><a href=\"#en-step-by-step-clean-a-list\">Step by Step: Clean a List<\/a><\/li><li><a href=\"#en-the-options-explained\">The Options Explained<\/a><\/li><li><a href=\"#en-example-with-all-cleaning-options\">Example With All Cleaning Options<\/a><\/li><li><a href=\"#en-first-occurrence-or-last-occurrence\">First Occurrence or Last Occurrence?<\/a><\/li><li><a href=\"#en-how-lines-are-compared\">How Lines Are Compared<\/a><\/li><li><a href=\"#en-the-buttons\">The Buttons<\/a><\/li><li><a href=\"#en-real-life-uses\">Real-Life Uses<\/a><\/li><li><a href=\"#en-tips-and-limits\">Tips and Limits<\/a><\/li><li><a href=\"#en-only-repeated-only-unique-and-counts\">Only Repeated, Only Unique and Counts<\/a><\/li><\/ol><\/nav><h2 id=\"en-why-remove-duplicate-lines\">Why Remove Duplicate Lines?<\/h2><p>Lists grow messy when you collect them from several places. A keyword list merged from three tools, a mailing list from many forms, or a list of URLs for internal links will almost always contain repeats. Counting them by eye is slow and unreliable.<\/p><p>The Duplicate Line Remover compares every line, keeps one copy of each repeated line and reports exactly how many it removed. The order of your list is preserved, so nothing is shuffled.<\/p><h2 id=\"en-step-by-step-clean-a-list\">Step by Step: Clean a List<\/h2><ol><li>Open the <a href=\"https:\/\/tools.phledu.com\/duplicate-line-remover\/\">Duplicate Line Remover<\/a>.<\/li><li>Paste your list into the first box, <strong>one item per line<\/strong>.<\/li><li>The unique lines appear in <strong>Unique lines<\/strong> at once.<\/li><li>Check the counts under the boxes: lines in, lines kept, duplicates removed and empty lines removed.<\/li><li>Press <strong>Copy result<\/strong> or <strong>Download .txt<\/strong>.<\/li><\/ol><figure><img decoding=\"async\" src=\"https:\/\/tools.phledu.com\/blog\/wp-content\/themes\/phl-tools-blog-child\/assets\/guide-img\/dr-1.webp\" alt=\"Duplicate line remover with a list on top and unique lines below using default options\" width=\"880\" height=\"356\" loading=\"lazy\"><figcaption>Default options remove exact duplicate lines and keep the first copy.<\/figcaption><\/figure><div class=\"ex\"><div><b>Example<\/b><pre>apple\nBanana\napple \nbanana\ncherry\n\nBanana\n\ndate<\/pre><\/div><div><b>Result<\/b><pre>apple\nBanana\napple \nbanana\ncherry\n\ndate<\/pre><\/div><\/div><p>With the default options only the <em>exact<\/em> repeats were removed: the second <em>Banana<\/em> and the second empty line. <em>apple <\/em> (with a trailing space) and <em>banana<\/em> (lowercase) count as different lines, so they stayed. The options below fix that.<\/p><h2 id=\"en-the-options-explained\">The Options Explained<\/h2><figure><img decoding=\"async\" src=\"https:\/\/tools.phledu.com\/blog\/wp-content\/themes\/phl-tools-blog-child\/assets\/guide-img\/dr-2.webp\" alt=\"Duplicate line remover options: ignore case, ignore spaces, remove empty lines, trim kept lines, first or last occurrence\" width=\"880\" height=\"357\" loading=\"lazy\"><figcaption>The comparison options and the first or last occurrence choice.<\/figcaption><\/figure><ul><li><strong>Ignore upper and lower case:<\/strong> <em>Apple<\/em> and <em>apple<\/em> count as the same line. Tick it for keywords, emails and names.<\/li><li><strong>Ignore spaces at the start and end when comparing:<\/strong> lines that differ only by a space at the beginning or end count as the same. Very common in lists copied from spreadsheets. The kept line is left exactly as written.<\/li><li><strong>Remove empty lines:<\/strong> deletes blank lines completely and reports them separately from duplicates. Without it, only the first empty line is kept.<\/li><li><strong>Trim the lines that are kept:<\/strong> also removes spaces at the start and end of the lines that stay. This changes the kept lines, so tick it only when you want clean output.<\/li><li><strong>Which copy to keep:<\/strong> <em>First occurrence<\/em> or <em>Last occurrence<\/em>.<\/li><\/ul><h2 id=\"en-example-with-all-cleaning-options\">Example With All Cleaning Options<\/h2><p>Now tick <strong>Ignore upper and lower case<\/strong>, <strong>Ignore spaces<\/strong> and <strong>Remove empty lines<\/strong> on the same list.<\/p><figure><img decoding=\"async\" src=\"https:\/\/tools.phledu.com\/blog\/wp-content\/themes\/phl-tools-blog-child\/assets\/guide-img\/dr-3.webp\" alt=\"Duplicate line remover with ignore case, ignore spaces and remove empty lines ticked\" width=\"880\" height=\"356\" loading=\"lazy\"><figcaption>Ignore case, ignore spaces and remove empty lines all ticked.<\/figcaption><\/figure><div class=\"ex\"><div><b>Example<\/b><pre>apple\nBanana\napple \nbanana\ncherry\n\nBanana\n\ndate<\/pre><\/div><div><b>Result<\/b><pre>apple\nBanana\ncherry\ndate<\/pre><\/div><\/div><p>Four unique items remain from nine lines. <em>apple <\/em>, <em>banana<\/em> and the second <em>Banana<\/em> were recognised as repeats, and both empty lines were removed.<\/p><h2 id=\"en-first-occurrence-or-last-occurrence\">First Occurrence or Last Occurrence?<\/h2><p>When a line appears several times, you choose which copy stays. The copy you keep also decides the position of the line in the result.<\/p><figure><img decoding=\"async\" src=\"https:\/\/tools.phledu.com\/blog\/wp-content\/themes\/phl-tools-blog-child\/assets\/guide-img\/dr-4.webp\" alt=\"Duplicate line remover with Last occurrence selected\" width=\"880\" height=\"524\" loading=\"lazy\"><figcaption>Last occurrence keeps the final copy of each repeated line.<\/figcaption><\/figure><div class=\"ex\"><div><b>Example<\/b><pre>apple\nBanana\napple \nbanana\ncherry\n\nBanana\n\ndate\n(all cleaning options on, Last occurrence)<\/pre><\/div><div><b>Result<\/b><pre>apple\ncherry\nBanana\ndate<\/pre><\/div><\/div><ul><li><strong>First occurrence<\/strong> keeps the earliest copy. Use it when the first entry is the one that matters, such as the oldest record.<\/li><li><strong>Last occurrence<\/strong> keeps the most recent copy. Use it when later entries are updates.<\/li><\/ul><h2 id=\"en-how-lines-are-compared\">How Lines Are Compared<\/h2><p>Two lines are duplicates when they are identical after the options you chose. Accented characters are compared in a normalised form, so <em>\u00e9<\/em> typed as one character and as <em>e<\/em> plus an accent count as the same. Empty lines are treated like any other line unless you remove them.<\/p><h2 id=\"en-the-buttons\">The Buttons<\/h2><ul><li><strong>Copy result:<\/strong> copies the unique lines (Ctrl + Enter, or Cmd + Enter on Mac).<\/li><li><strong>Select result:<\/strong> highlights the output.<\/li><li><strong>Download .txt:<\/strong> saves the result as a text file.<\/li><li><strong>Use result as input:<\/strong> moves the result into the input, handy when you want to run it again with other options.<\/li><li><strong>Paste<\/strong>, <strong>Try an example<\/strong> and <strong>Clear all<\/strong> work as in the other PHL Tools.<\/li><\/ul><h2 id=\"en-real-life-uses\">Real-Life Uses<\/h2><ul><li><strong>SEO:<\/strong> merge keyword lists from several tools, remove repeats, then sort them with the <a href=\"https:\/\/tools.phledu.com\/line-sorter\/\">Line Sorter<\/a>.<\/li><li><strong>Email and contact lists:<\/strong> remove repeated addresses before importing.<\/li><li><strong>URL lists:<\/strong> prepare a clean list for internal linking or a sitemap check.<\/li><li><strong>Students and teachers:<\/strong> combine name lists collected from different forms.<\/li><\/ul><h2 id=\"en-tips-and-limits\">Tips and Limits<\/h2><ul><li>Put <strong>one item per line<\/strong>. The tool cannot split a comma-separated list. Use <a href=\"https:\/\/tools.phledu.com\/find-and-replace\/\">Find and Replace<\/a> to turn commas into line breaks first.<\/li><li>Unsure which options to use? Start with all three cleaning options on, then check the result.<\/li><li>Your list stays in your browser and is not uploaded.<\/li><\/ul><h2 id=\"en-only-repeated-only-unique-and-counts\">Only Repeated, Only Unique and Counts<\/h2><p>The new <strong>What to output<\/strong> menu lets the same list answer different questions:<\/p><ul><li><strong>Remove duplicates (keep one of each):<\/strong> the normal behaviour.<\/li><li><strong>Only lines that repeat:<\/strong> shows each line that appears more than once, one time each. Useful for finding what is duplicated.<\/li><li><strong>Only lines that appear once:<\/strong> shows the lines that never repeat.<\/li><li><strong>Count of each line, most frequent first:<\/strong> shows lines such as <em>3 \u00d7 apple<\/em>, sorted from most to least frequent.<\/li><\/ul><p>Your other options (ignore case, ignore spaces when comparing, remove empty lines) apply to all four choices.<\/p><h2 id=\"en-faq\">FAQ<\/h2><details><summary>Does it keep the original order of my list?<\/summary><p>Yes. Unique lines stay in the order of the copy you keep: the first copy by default, or the last copy if you choose Last occurrence.<\/p><\/details><details><summary>Why were Apple and apple not treated as duplicates?<\/summary><p>Matching is exact by default. Tick Ignore upper and lower case to treat them as the same line.<\/p><\/details><details><summary>How do I remove blank lines too?<\/summary><p>Tick Remove empty lines. Blank lines are deleted and reported separately from duplicates.<\/p><\/details><details><summary>Can it handle a list separated by commas?<\/summary><p>No, it works one item per line. First turn the commas into line breaks with Find and Replace.<\/p><\/details><details><summary>Is my list uploaded?<\/summary><p>No. All processing happens in your browser.<\/p><\/details><h2 id=\"en-related\">Related tool guides<\/h2><p class=\"rel\"><a href=\"https:\/\/tools.phledu.com\/blog\/line-sorter-guide\/\">Line Sorter<\/a><a href=\"https:\/\/tools.phledu.com\/blog\/text-cleaner-guide\/\">Text Cleaner<\/a><a href=\"https:\/\/tools.phledu.com\/blog\/word-counter-guide\/\">Word Counter<\/a><\/p><\/div>\n<div class=\"phl-ur\" lang=\"ur\" dir=\"rtl\"><p class=\"lead-p\">\u06a9\u06cc\u0627 \u0622\u067e \u06a9\u0648 \u0641\u06c1\u0631\u0633\u062a \u0633\u06d2 <strong>\u0688\u067e\u0644\u06cc\u06a9\u06cc\u0679 \u0644\u0627\u0626\u0646\u06cc\u06ba \u06c1\u0679\u0627\u0646\u06cc<\/strong> \u06c1\u06cc\u06ba\u061f \u0627\u0633\u06d2 PHL Tools \u06a9\u06d2 \u0645\u0641\u062a \u0688\u067e\u0644\u06cc\u06a9\u06cc\u0679 \u0644\u0627\u0626\u0646 \u0631\u06cc\u0645\u0648\u0648\u0631 \u0645\u06cc\u06ba \u067e\u06cc\u0633\u0679 \u06a9\u0631\u06cc\u06ba \u0627\u0648\u0631 \u0635\u0631\u0641 \u0645\u0646\u0641\u0631\u062f \u0644\u0627\u0626\u0646\u06cc\u06ba \u0627\u0635\u0644 \u062a\u0631\u062a\u06cc\u0628 \u0645\u06cc\u06ba \u062d\u0627\u0635\u0644 \u06a9\u0631\u06cc\u06ba\u06d4 \u0627\u0633 \u0645\u06a9\u0645\u0644 \u06af\u0627\u0626\u06cc\u0688 \u0645\u06cc\u06ba \u06c1\u0631 \u0622\u067e\u0634\u0646 \u06a9\u06cc \u0648\u0636\u0627\u062d\u062a \u06c1\u06d2: \u0628\u0627\u0644\u06a9\u0644 \u0627\u06cc\u06a9 \u062c\u06cc\u0633\u0627 \u06cc\u0627 \u06a9\u06cc\u0633 \u0646\u0638\u0631\u0627\u0646\u062f\u0627\u0632 \u0645\u06cc\u0686\u060c \u0627\u0633\u067e\u06cc\u0633 \u0646\u0638\u0631\u0627\u0646\u062f\u0627\u0632 \u06a9\u0631\u0646\u0627\u060c \u062e\u0627\u0644\u06cc \u0644\u0627\u0626\u0646\u06cc\u06ba \u06c1\u0679\u0627\u0646\u0627\u060c \u0631\u06a9\u06be\u06cc \u06af\u0626\u06cc \u0644\u0627\u0626\u0646\u06cc\u06ba \u0679\u0631\u0645 \u06a9\u0631\u0646\u0627 \u0627\u0648\u0631 \u067e\u06c1\u0644\u06cc \u06cc\u0627 \u0622\u062e\u0631\u06cc \u06a9\u0627\u067e\u06cc \u0631\u06a9\u06be\u0646\u0627\u06d4 \u06cc\u06c1 \u06a9\u06cc \u0648\u0631\u0688 \u0641\u06c1\u0631\u0633\u062a\u0648\u06ba\u060c \u0627\u06cc \u0645\u06cc\u0644\u0632\u060c URLs\u060c \u0646\u0627\u0645\u0648\u06ba \u0627\u0648\u0631 \u0644\u0627\u06af \u0641\u0627\u0626\u0644\u0648\u06ba \u06a9\u06d2 \u0644\u06cc\u06d2 \u06a9\u0627\u0645 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u060c \u0628\u062a\u0627\u062a\u0627 \u06c1\u06d2 \u06a9\u062a\u0646\u06cc \u0688\u067e\u0644\u06cc\u06a9\u06cc\u0679 \u06c1\u0679\u0627\u0626\u06cc\u06ba\u060c \u0627\u0648\u0631 \u0622\u067e \u06a9\u06cc \u0641\u06c1\u0631\u0633\u062a \u0627\u067e\u0644\u0648\u0688 \u0646\u06c1\u06cc\u06ba \u06a9\u0631\u062a\u0627\u06d4<\/p><nav class=\"toc\" aria-label=\"Contents\"><strong>\u0627\u0633 \u06af\u0627\u0626\u06cc\u0688 \u0645\u06cc\u06ba<\/strong><ol><li><a href=\"#ur-why-remove-duplicate-lines\">Why Remove Duplicate Lines?<\/a><\/li><li><a href=\"#ur-step-by-step-clean-a-list\">Step by Step: Clean a List<\/a><\/li><li><a href=\"#ur-the-options-explained\">The Options Explained<\/a><\/li><li><a href=\"#ur-example-with-all-cleaning-options\">Example With All Cleaning Options<\/a><\/li><li><a href=\"#ur-first-occurrence-or-last-occurrence\">First Occurrence or Last Occurrence?<\/a><\/li><li><a href=\"#ur-how-lines-are-compared\">How Lines Are Compared<\/a><\/li><li><a href=\"#ur-the-buttons\">The Buttons<\/a><\/li><li><a href=\"#ur-real-life-uses\">Real-Life Uses<\/a><\/li><li><a href=\"#ur-tips-and-limits\">Tips and Limits<\/a><\/li><li><a href=\"#ur-only-repeated-only-unique-and-counts\">Only Repeated, Only Unique and Counts<\/a><\/li><\/ol><\/nav><h2 id=\"ur-why-remove-duplicate-lines\">Why Remove Duplicate Lines?<\/h2><p>\u062c\u0628 \u0622\u067e \u0641\u06c1\u0631\u0633\u062a\u06cc\u06ba \u06a9\u0626\u06cc \u062c\u06af\u06c1\u0648\u06ba \u0633\u06d2 \u062c\u0645\u0639 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba \u062a\u0648 \u0648\u06c1 \u0628\u06af\u0691 \u062c\u0627\u062a\u06cc \u06c1\u06cc\u06ba\u06d4 \u062a\u06cc\u0646 \u0679\u0648\u0644\u0632 \u0633\u06d2 \u0645\u0644\u0627\u0626\u06cc \u06af\u0626\u06cc \u06a9\u06cc \u0648\u0631\u0688 \u0641\u06c1\u0631\u0633\u062a\u060c \u06a9\u0626\u06cc \u0641\u0627\u0631\u0645\u0648\u06ba \u06a9\u06cc \u0627\u06cc \u0645\u06cc\u0644 \u0644\u0633\u0679\u060c \u06cc\u0627 \u0627\u0646\u0679\u0631\u0646\u0644 \u0644\u0646\u06a9\u0633 \u06a9\u06d2 \u0644\u06cc\u06d2 URLs \u06a9\u06cc \u0641\u06c1\u0631\u0633\u062a \u0645\u06cc\u06ba \u062a\u0642\u0631\u06cc\u0628\u0627\u064b \u06c1\u0645\u06cc\u0634\u06c1 \u062a\u06a9\u0631\u0627\u0631 \u06c1\u0648\u062a\u06cc \u06c1\u06d2\u06d4 \u0622\u0646\u06a9\u06be \u0633\u06d2 \u06af\u0646\u0646\u0627 \u0633\u0633\u062a \u0627\u0648\u0631 \u0646\u0627\u0642\u0627\u0628\u0644\u0650 \u0627\u0639\u062a\u0645\u0627\u062f \u06c1\u06d2\u06d4<\/p><p>\u0688\u067e\u0644\u06cc\u06a9\u06cc\u0679 \u0644\u0627\u0626\u0646 \u0631\u06cc\u0645\u0648\u0648\u0631 \u06c1\u0631 \u0644\u0627\u0626\u0646 \u06a9\u0627 \u0645\u0648\u0627\u0632\u0646\u06c1 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u060c \u062f\u06c1\u0631\u0627\u0626\u06cc \u0644\u0627\u0626\u0646 \u06a9\u06cc \u0627\u06cc\u06a9 \u06a9\u0627\u067e\u06cc \u0631\u06a9\u06be\u062a\u0627 \u06c1\u06d2 \u0627\u0648\u0631 \u0628\u062a\u0627\u062a\u0627 \u06c1\u06d2 \u06a9\u062a\u0646\u06cc \u06c1\u0679\u0627\u0626\u06cc\u06ba\u06d4 \u0641\u06c1\u0631\u0633\u062a \u06a9\u06cc \u062a\u0631\u062a\u06cc\u0628 \u0628\u0631\u0642\u0631\u0627\u0631 \u0631\u06c1\u062a\u06cc \u06c1\u06d2\u060c \u06a9\u0686\u06be \u0628\u06a9\u06be\u0631\u062a\u0627 \u0646\u06c1\u06cc\u06ba\u06d4<\/p><h2 id=\"ur-step-by-step-clean-a-list\">Step by Step: Clean a List<\/h2><ol><li><a href=\"https:\/\/tools.phledu.com\/duplicate-line-remover\/\">\u0688\u067e\u0644\u06cc\u06a9\u06cc\u0679 \u0644\u0627\u0626\u0646 \u0631\u06cc\u0645\u0648\u0648\u0631<\/a> \u06a9\u06be\u0648\u0644\u06cc\u06ba\u06d4<\/li><li>\u0641\u06c1\u0631\u0633\u062a \u067e\u06c1\u0644\u06d2 \u062e\u0627\u0646\u06d2 \u0645\u06cc\u06ba \u067e\u06cc\u0633\u0679 \u06a9\u0631\u06cc\u06ba\u060c <strong>\u06c1\u0631 \u0622\u0626\u0679\u0645 \u0627\u0644\u06af \u0644\u0627\u0626\u0646 \u0645\u06cc\u06ba<\/strong>\u06d4<\/li><li>\u0645\u0646\u0641\u0631\u062f \u0644\u0627\u0626\u0646\u06cc\u06ba <strong>Unique lines<\/strong> \u0645\u06cc\u06ba \u0641\u0648\u0631\u0627\u064b \u0622 \u062c\u0627\u062a\u06cc \u06c1\u06cc\u06ba\u06d4<\/li><li>\u062e\u0627\u0646\u0648\u06ba \u06a9\u06d2 \u0646\u06cc\u0686\u06d2 \u06af\u0646\u062a\u06cc \u062f\u06cc\u06a9\u06be\u06cc\u06ba: \u06a9\u0644 \u0644\u0627\u0626\u0646\u06cc\u06ba\u060c \u0631\u06a9\u06be\u06cc \u06af\u0626\u06cc\u060c \u06c1\u0679\u0627\u0626\u06cc \u06af\u0626\u06cc \u0688\u067e\u0644\u06cc\u06a9\u06cc\u0679 \u0627\u0648\u0631 \u06c1\u0679\u0627\u0626\u06cc \u06af\u0626\u06cc \u062e\u0627\u0644\u06cc \u0644\u0627\u0626\u0646\u06cc\u06ba\u06d4<\/li><li><strong>Copy result<\/strong> \u06cc\u0627 <strong>Download .txt<\/strong> \u062f\u0628\u0627\u0626\u06cc\u06ba\u06d4<\/li><\/ol><figure><img decoding=\"async\" src=\"https:\/\/tools.phledu.com\/blog\/wp-content\/themes\/phl-tools-blog-child\/assets\/guide-img\/dr-1.webp\" alt=\"Duplicate line remover with a list on top and unique lines below using default options\" width=\"880\" height=\"356\" loading=\"lazy\"><figcaption>\u0688\u06cc\u0641\u0627\u0644\u0679 \u0622\u067e\u0634\u0646\u0632 \u0628\u0627\u0644\u06a9\u0644 \u0627\u06cc\u06a9 \u062c\u06cc\u0633\u06cc \u0688\u067e\u0644\u06cc\u06a9\u06cc\u0679 \u0644\u0627\u0626\u0646\u06cc\u06ba \u06c1\u0679\u0627\u062a\u06d2 \u06c1\u06cc\u06ba \u0627\u0648\u0631 \u067e\u06c1\u0644\u06cc \u06a9\u0627\u067e\u06cc \u0631\u06a9\u06be\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/figcaption><\/figure><div class=\"ex\"><div><b>\u0645\u062b\u0627\u0644<\/b><pre>apple\nBanana\napple \nbanana\ncherry\n\nBanana\n\ndate<\/pre><\/div><div><b>\u0646\u062a\u06cc\u062c\u06c1<\/b><pre>apple\nBanana\napple \nbanana\ncherry\n\ndate<\/pre><\/div><\/div><p>\u0688\u06cc\u0641\u0627\u0644\u0679 \u0622\u067e\u0634\u0646\u0632 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0635\u0631\u0641 <em>\u0628\u0627\u0644\u06a9\u0644 \u0627\u06cc\u06a9 \u062c\u06cc\u0633\u06cc<\/em> \u062a\u06a9\u0631\u0627\u0631 \u06c1\u0679\u06cc: \u062f\u0648\u0633\u0631\u0627 <em>Banana<\/em> \u0627\u0648\u0631 \u062f\u0648\u0633\u0631\u06cc \u062e\u0627\u0644\u06cc \u0644\u0627\u0626\u0646\u06d4 <em>apple <\/em> (\u0622\u062e\u0631 \u0645\u06cc\u06ba \u0627\u0633\u067e\u06cc\u0633 \u06a9\u06d2 \u0633\u0627\u062a\u06be) \u0627\u0648\u0631 <em>banana<\/em> (\u0686\u06be\u0648\u0679\u06d2 \u062d\u0631\u0648\u0641) \u0627\u0644\u06af \u0644\u0627\u0626\u0646\u06cc\u06ba \u0633\u0645\u062c\u06be\u06cc \u06af\u0626\u06cc\u06ba\u060c \u0627\u0633 \u0644\u06cc\u06d2 \u0631\u06c1 \u06af\u0626\u06cc\u06ba\u06d4 \u0646\u06cc\u0686\u06d2 \u06a9\u06d2 \u0622\u067e\u0634\u0646 \u06cc\u06c1 \u0679\u06be\u06cc\u06a9 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p><h2 id=\"ur-the-options-explained\">The Options Explained<\/h2><figure><img decoding=\"async\" src=\"https:\/\/tools.phledu.com\/blog\/wp-content\/themes\/phl-tools-blog-child\/assets\/guide-img\/dr-2.webp\" alt=\"Duplicate line remover options: ignore case, ignore spaces, remove empty lines, trim kept lines, first or last occurrence\" width=\"880\" height=\"357\" loading=\"lazy\"><figcaption>\u0645\u0648\u0627\u0632\u0646\u06d2 \u06a9\u06d2 \u0622\u067e\u0634\u0646\u0632 \u0627\u0648\u0631 \u067e\u06c1\u0644\u06cc \u06cc\u0627 \u0622\u062e\u0631\u06cc \u06a9\u0627\u067e\u06cc \u06a9\u0627 \u0627\u0646\u062a\u062e\u0627\u0628\u06d4<\/figcaption><\/figure><ul><li><strong>Ignore upper and lower case:<\/strong> <em>Apple<\/em> \u0627\u0648\u0631 <em>apple<\/em> \u0627\u06cc\u06a9 \u06c1\u06cc \u0644\u0627\u0626\u0646 \u0633\u0645\u062c\u06be\u06cc \u062c\u0627\u062a\u06cc \u06c1\u06cc\u06ba\u06d4 \u06a9\u06cc \u0648\u0631\u0688\u0632\u060c \u0627\u06cc \u0645\u06cc\u0644\u0632 \u0627\u0648\u0631 \u0646\u0627\u0645\u0648\u06ba \u06a9\u06d2 \u0644\u06cc\u06d2 \u0679\u06a9 \u06a9\u0631\u06cc\u06ba\u06d4<\/li><li><strong>Ignore spaces at the start and end when comparing:<\/strong> \u062c\u0646 \u0644\u0627\u0626\u0646\u0648\u06ba \u0645\u06cc\u06ba \u0641\u0631\u0642 \u0635\u0631\u0641 \u0634\u0631\u0648\u0639 \u06cc\u0627 \u0622\u062e\u0631 \u06a9\u06cc \u0627\u0633\u067e\u06cc\u0633 \u06a9\u0627 \u06c1\u0648 \u0648\u06c1 \u0627\u06cc\u06a9 \u0633\u0645\u062c\u06be\u06cc \u062c\u0627\u062a\u06cc \u06c1\u06cc\u06ba\u06d4 \u0627\u0633\u067e\u0631\u06cc\u0688 \u0634\u06cc\u0679 \u0633\u06d2 \u06a9\u0627\u067e\u06cc \u06a9\u06cc \u0641\u06c1\u0631\u0633\u062a\u0648\u06ba \u0645\u06cc\u06ba \u0628\u06c1\u062a \u0639\u0627\u0645\u06d4 \u0631\u06a9\u06be\u06cc \u06af\u0626\u06cc \u0644\u0627\u0626\u0646 \u0628\u0627\u0644\u06a9\u0644 \u0648\u06cc\u0633\u06cc \u06c1\u06cc \u0631\u06c1\u062a\u06cc \u06c1\u06d2 \u062c\u06cc\u0633\u06cc \u0644\u06a9\u06be\u06cc \u062a\u06be\u06cc\u06d4<\/li><li><strong>Remove empty lines:<\/strong> \u062e\u0627\u0644\u06cc \u0644\u0627\u0626\u0646\u06cc\u06ba \u0645\u06a9\u0645\u0644 \u06c1\u0679\u0627\u062a\u0627 \u06c1\u06d2 \u0627\u0648\u0631 \u0627\u0646\u06c1\u06cc\u06ba \u0688\u067e\u0644\u06cc\u06a9\u06cc\u0679 \u0633\u06d2 \u0627\u0644\u06af \u0631\u067e\u0648\u0631\u0679 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u0627\u0633 \u06a9\u06d2 \u0628\u063a\u06cc\u0631 \u0635\u0631\u0641 \u067e\u06c1\u0644\u06cc \u062e\u0627\u0644\u06cc \u0644\u0627\u0626\u0646 \u0631\u06c1\u062a\u06cc \u06c1\u06d2\u06d4<\/li><li><strong>Trim the lines that are kept:<\/strong> \u0631\u06a9\u06be\u06cc \u06af\u0626\u06cc \u0644\u0627\u0626\u0646\u0648\u06ba \u06a9\u06d2 \u0634\u0631\u0648\u0639 \u0627\u0648\u0631 \u0622\u062e\u0631 \u06a9\u06cc \u0627\u0633\u067e\u06cc\u0633 \u0628\u06be\u06cc \u06c1\u0679\u0627\u062a\u0627 \u06c1\u06d2\u06d4 \u06cc\u06c1 \u0631\u06a9\u06be\u06cc \u06af\u0626\u06cc \u0644\u0627\u0626\u0646\u06cc\u06ba \u0628\u062f\u0644\u062a\u0627 \u06c1\u06d2\u060c \u0627\u0633 \u0644\u06cc\u06d2 \u0635\u0631\u0641 \u0635\u0627\u0641 \u0622\u0624\u0679 \u067e\u0679 \u0686\u0627\u06c1\u06cc\u06d2 \u06c1\u0648 \u062a\u0648 \u0679\u06a9 \u06a9\u0631\u06cc\u06ba\u06d4<\/li><li><strong>Which copy to keep:<\/strong> <em>First occurrence<\/em> \u06cc\u0627 <em>Last occurrence<\/em>\u06d4<\/li><\/ul><h2 id=\"ur-example-with-all-cleaning-options\">Example With All Cleaning Options<\/h2><p>\u0627\u0628 \u0627\u0633\u06cc \u0641\u06c1\u0631\u0633\u062a \u067e\u0631 <strong>Ignore upper and lower case<\/strong>\u060c <strong>Ignore spaces<\/strong> \u0627\u0648\u0631 <strong>Remove empty lines<\/strong> \u0679\u06a9 \u06a9\u0631\u06cc\u06ba\u06d4<\/p><figure><img decoding=\"async\" src=\"https:\/\/tools.phledu.com\/blog\/wp-content\/themes\/phl-tools-blog-child\/assets\/guide-img\/dr-3.webp\" alt=\"Duplicate line remover with ignore case, ignore spaces and remove empty lines ticked\" width=\"880\" height=\"356\" loading=\"lazy\"><figcaption>Ignore case\u060c Ignore spaces \u0627\u0648\u0631 Remove empty lines \u062a\u06cc\u0646\u0648\u06ba \u0679\u06a9 \u06c1\u06cc\u06ba\u06d4<\/figcaption><\/figure><div class=\"ex\"><div><b>\u0645\u062b\u0627\u0644<\/b><pre>apple\nBanana\napple \nbanana\ncherry\n\nBanana\n\ndate<\/pre><\/div><div><b>\u0646\u062a\u06cc\u062c\u06c1<\/b><pre>apple\nBanana\ncherry\ndate<\/pre><\/div><\/div><p>\u0646\u0648 \u0644\u0627\u0626\u0646\u0648\u06ba \u0645\u06cc\u06ba \u0633\u06d2 \u0686\u0627\u0631 \u0645\u0646\u0641\u0631\u062f \u0622\u0626\u0679\u0645 \u0628\u0686\u06d2\u06d4 <em>apple <\/em>\u060c <em>banana<\/em> \u0627\u0648\u0631 \u062f\u0648\u0633\u0631\u0627 <em>Banana<\/em> \u062a\u06a9\u0631\u0627\u0631 \u067e\u06c1\u0686\u0627\u0646\u06d2 \u06af\u0626\u06d2 \u0627\u0648\u0631 \u062f\u0648\u0646\u0648\u06ba \u062e\u0627\u0644\u06cc \u0644\u0627\u0626\u0646\u06cc\u06ba \u06c1\u0679 \u06af\u0626\u06cc\u06ba\u06d4<\/p><h2 id=\"ur-first-occurrence-or-last-occurrence\">First Occurrence or Last Occurrence?<\/h2><p>\u062c\u0628 \u06a9\u0648\u0626\u06cc \u0644\u0627\u0626\u0646 \u06a9\u0626\u06cc \u0628\u0627\u0631 \u0622\u0626\u06d2 \u062a\u0648 \u0622\u067e \u0686\u0646\u062a\u06d2 \u06c1\u06cc\u06ba \u06a9\u0648\u0646 \u0633\u06cc \u06a9\u0627\u067e\u06cc \u0631\u06c1\u06d2\u06d4 \u062c\u0648 \u06a9\u0627\u067e\u06cc \u0622\u067e \u0631\u06a9\u06be\u062a\u06d2 \u06c1\u06cc\u06ba \u0648\u06c1\u06cc \u0646\u062a\u06cc\u062c\u06d2 \u0645\u06cc\u06ba \u0644\u0627\u0626\u0646 \u06a9\u06cc \u062c\u06af\u06c1 \u0628\u06be\u06cc \u0637\u06d2 \u06a9\u0631\u062a\u06cc \u06c1\u06d2\u06d4<\/p><figure><img decoding=\"async\" src=\"https:\/\/tools.phledu.com\/blog\/wp-content\/themes\/phl-tools-blog-child\/assets\/guide-img\/dr-4.webp\" alt=\"Duplicate line remover with Last occurrence selected\" width=\"880\" height=\"524\" loading=\"lazy\"><figcaption>Last occurrence \u06c1\u0631 \u062f\u06c1\u0631\u0627\u0626\u06cc \u0644\u0627\u0626\u0646 \u06a9\u06cc \u0622\u062e\u0631\u06cc \u06a9\u0627\u067e\u06cc \u0631\u06a9\u06be\u062a\u0627 \u06c1\u06d2\u06d4<\/figcaption><\/figure><div class=\"ex\"><div><b>\u0645\u062b\u0627\u0644<\/b><pre>apple\nBanana\napple \nbanana\ncherry\n\nBanana\n\ndate\n(\u062a\u0645\u0627\u0645 \u0635\u0641\u0627\u0626\u06cc \u0622\u067e\u0634\u0646\u0632 \u0622\u0646\u060c Last occurrence)<\/pre><\/div><div><b>\u0646\u062a\u06cc\u062c\u06c1<\/b><pre>apple\ncherry\nBanana\ndate<\/pre><\/div><\/div><ul><li><strong>First occurrence<\/strong> \u0633\u0628 \u0633\u06d2 \u067e\u06c1\u0644\u06cc \u06a9\u0627\u067e\u06cc \u0631\u06a9\u06be\u062a\u0627 \u06c1\u06d2\u06d4 \u062a\u0628 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u06cc\u06ba \u062c\u0628 \u067e\u06c1\u0644\u06cc \u0627\u0646\u062f\u0631\u0627\u062c \u0627\u06c1\u0645 \u06c1\u0648\u060c \u0645\u062b\u0644\u0627\u064b \u0633\u0628 \u0633\u06d2 \u067e\u0631\u0627\u0646\u0627 \u0631\u06cc\u06a9\u0627\u0631\u0688\u06d4<\/li><li><strong>Last occurrence<\/strong> \u0633\u0628 \u0633\u06d2 \u062d\u0627\u0644\u06cc\u06c1 \u06a9\u0627\u067e\u06cc \u0631\u06a9\u06be\u062a\u0627 \u06c1\u06d2\u06d4 \u062a\u0628 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u06cc\u06ba \u062c\u0628 \u0628\u0639\u062f \u06a9\u06cc \u0627\u0646\u062f\u0631\u0627\u062c\u0627\u062a \u0627\u067e \u0688\u06cc\u0679 \u06c1\u0648\u06ba\u06d4<\/li><\/ul><h2 id=\"ur-how-lines-are-compared\">How Lines Are Compared<\/h2><p>\u062f\u0648 \u0644\u0627\u0626\u0646\u06cc\u06ba \u062a\u0628 \u0688\u067e\u0644\u06cc\u06a9\u06cc\u0679 \u06c1\u06cc\u06ba \u062c\u0628 \u0622\u067e \u06a9\u06d2 \u0686\u0646\u06d2 \u0622\u067e\u0634\u0646\u0632 \u06a9\u06d2 \u0628\u0639\u062f \u0628\u0627\u0644\u06a9\u0644 \u0627\u06cc\u06a9 \u062c\u06cc\u0633\u06cc \u06c1\u0648\u06ba\u06d4 \u0627\u0639\u0631\u0627\u0628 \u0648\u0627\u0644\u06d2 \u062d\u0631\u0648\u0641 \u0646\u0627\u0631\u0645\u0644 \u0634\u06a9\u0644 \u0645\u06cc\u06ba \u0645\u0648\u0627\u0632\u0646\u06c1 \u06c1\u0648\u062a\u06d2 \u06c1\u06cc\u06ba\u060c \u06cc\u0639\u0646\u06cc \u0627\u06cc\u06a9 \u062d\u0631\u0641 \u06a9\u06d2 \u0637\u0648\u0631 \u067e\u0631 \u0644\u06a9\u06be\u0627 <em>\u00e9<\/em> \u0627\u0648\u0631 <em>e<\/em> \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0627\u0639\u0631\u0627\u0628 \u0648\u0627\u0644\u0627 <em>\u00e9<\/em> \u0627\u06cc\u06a9 \u06c1\u06cc \u06af\u0646\u06d2 \u062c\u0627\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4 \u062e\u0627\u0644\u06cc \u0644\u0627\u0626\u0646\u06cc\u06ba \u062f\u0648\u0633\u0631\u06cc \u0644\u0627\u0626\u0646\u0648\u06ba \u06a9\u06cc \u0637\u0631\u062d \u0644\u06cc \u062c\u0627\u062a\u06cc \u06c1\u06cc\u06ba \u062c\u0628 \u062a\u06a9 \u0622\u067e \u0627\u0646\u06c1\u06cc\u06ba \u06c1\u0679\u0627 \u0646\u06c1 \u062f\u06cc\u06ba\u06d4<\/p><h2 id=\"ur-the-buttons\">The Buttons<\/h2><ul><li><strong>Copy result:<\/strong> \u0645\u0646\u0641\u0631\u062f \u0644\u0627\u0626\u0646\u06cc\u06ba \u06a9\u0627\u067e\u06cc \u06a9\u0631\u062a\u0627 \u06c1\u06d2 (Ctrl + Enter\u060c \u0645\u06cc\u06a9 \u067e\u0631 Cmd + Enter)\u06d4<\/li><li><strong>Select result:<\/strong> \u0622\u0624\u0679 \u067e\u0679 \u06c1\u0627\u0626\u06cc \u0644\u0627\u0626\u0679 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/li><li><strong>Download .txt:<\/strong> \u0646\u062a\u06cc\u062c\u06c1 \u0679\u06cc\u06a9\u0633\u0679 \u0641\u0627\u0626\u0644 \u0645\u06cc\u06ba \u0645\u062d\u0641\u0648\u0638 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/li><li><strong>Use result as input:<\/strong> \u0646\u062a\u06cc\u062c\u06d2 \u06a9\u0648 \u0627\u0646 \u067e\u0679 \u0645\u06cc\u06ba \u0644\u06d2 \u062c\u0627\u062a\u0627 \u06c1\u06d2\u060c \u062f\u0648\u0633\u0631\u06d2 \u0622\u067e\u0634\u0646\u0632 \u0633\u06d2 \u062f\u0648\u0628\u0627\u0631\u06c1 \u0686\u0644\u0627\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0645\u0641\u06cc\u062f\u06d4<\/li><li><strong>Paste<\/strong>\u060c <strong>Try an example<\/strong> \u0627\u0648\u0631 <strong>Clear all<\/strong> \u062f\u0648\u0633\u0631\u06d2 PHL Tools \u06a9\u06cc \u0637\u0631\u062d \u06a9\u0627\u0645 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/li><\/ul><h2 id=\"ur-real-life-uses\">Real-Life Uses<\/h2><ul><li><strong>SEO:<\/strong> \u06a9\u0626\u06cc \u0679\u0648\u0644\u0632 \u06a9\u06cc \u06a9\u06cc \u0648\u0631\u0688 \u0641\u06c1\u0631\u0633\u062a\u06cc\u06ba \u0645\u0644\u0627\u0626\u06cc\u06ba\u060c \u062a\u06a9\u0631\u0627\u0631 \u06c1\u0679\u0627\u0626\u06cc\u06ba\u060c \u067e\u06be\u0631 <a href=\"https:\/\/tools.phledu.com\/line-sorter\/\">\u0644\u0627\u0626\u0646 \u0633\u0648\u0631\u0679\u0631<\/a> \u0633\u06d2 \u062a\u0631\u062a\u06cc\u0628 \u062f\u06cc\u06ba\u06d4<\/li><li><strong>\u0627\u06cc \u0645\u06cc\u0644 \u0627\u0648\u0631 \u0631\u0627\u0628\u0637\u06c1 \u0641\u06c1\u0631\u0633\u062a\u06cc\u06ba:<\/strong> \u0627\u0645\u067e\u0648\u0631\u0679 \u0633\u06d2 \u067e\u06c1\u0644\u06d2 \u062f\u06c1\u0631\u0627\u0626\u06d2 \u067e\u062a\u06d2 \u06c1\u0679\u0627\u0626\u06cc\u06ba\u06d4<\/li><li><strong>URL \u0641\u06c1\u0631\u0633\u062a\u06cc\u06ba:<\/strong> \u0627\u0646\u0679\u0631\u0646\u0644 \u0644\u0646\u06a9\u0646\u06af \u06cc\u0627 \u0633\u0627\u0626\u0679 \u0645\u06cc\u067e \u062c\u0627\u0646\u0686 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0635\u0627\u0641 \u0641\u06c1\u0631\u0633\u062a \u0628\u0646\u0627\u0626\u06cc\u06ba\u06d4<\/li><li><strong>\u0637\u0644\u0628\u06c1 \u0627\u0648\u0631 \u0627\u0633\u0627\u062a\u0630\u06c1:<\/strong> \u0645\u062e\u062a\u0644\u0641 \u0641\u0627\u0631\u0645\u0648\u06ba \u0633\u06d2 \u062c\u0645\u0639 \u0646\u0627\u0645\u0648\u06ba \u06a9\u06cc \u0641\u06c1\u0631\u0633\u062a\u06cc\u06ba \u0645\u0644\u0627\u0626\u06cc\u06ba\u06d4<\/li><\/ul><h2 id=\"ur-tips-and-limits\">Tips and Limits<\/h2><ul><li><strong>\u06c1\u0631 \u0622\u0626\u0679\u0645 \u0627\u0644\u06af \u0644\u0627\u0626\u0646<\/strong> \u0645\u06cc\u06ba \u0631\u06a9\u06be\u06cc\u06ba\u06d4 \u0679\u0648\u0644 \u06a9\u0627\u0645\u0627 \u0633\u06d2 \u0627\u0644\u06af \u06a9\u06cc \u06af\u0626\u06cc \u0641\u06c1\u0631\u0633\u062a \u06a9\u0648 \u0646\u06c1\u06cc\u06ba \u062a\u0648\u0691 \u0633\u06a9\u062a\u0627\u06d4 \u067e\u06c1\u0644\u06d2 <a href=\"https:\/\/tools.phledu.com\/find-and-replace\/\">\u0641\u0627\u0626\u0646\u0688 \u0627\u06cc\u0646\u0688 \u0631\u06cc\u067e\u0644\u06cc\u0633<\/a> \u0633\u06d2 \u06a9\u0627\u0645\u0627 \u06a9\u0648 \u0644\u0627\u0626\u0646 \u0628\u0631\u06cc\u06a9 \u0628\u0646\u0627\u0626\u06cc\u06ba\u06d4<\/li><li>\u0633\u0645\u062c\u06be \u0646\u06c1 \u0622\u0626\u06d2 \u06a9\u0648\u0646 \u0633\u06d2 \u0622\u067e\u0634\u0646 \u0644\u06af\u0627\u0626\u06cc\u06ba \u062a\u0648 \u062a\u06cc\u0646\u0648\u06ba \u0635\u0641\u0627\u0626\u06cc \u0622\u067e\u0634\u0646\u0632 \u0622\u0646 \u06a9\u0631 \u06a9\u06d2 \u0634\u0631\u0648\u0639 \u06a9\u0631\u06cc\u06ba \u0627\u0648\u0631 \u0646\u062a\u06cc\u062c\u06c1 \u062f\u06cc\u06a9\u06be\u06cc\u06ba\u06d4<\/li><li>\u0622\u067e \u06a9\u06cc \u0641\u06c1\u0631\u0633\u062a \u0622\u067e \u06a9\u06d2 \u0628\u0631\u0627\u0624\u0632\u0631 \u0645\u06cc\u06ba \u0631\u06c1\u062a\u06cc \u06c1\u06d2 \u0627\u0648\u0631 \u0627\u067e\u0644\u0648\u0688 \u0646\u06c1\u06cc\u06ba \u06c1\u0648\u062a\u06cc\u06d4<\/li><\/ul><h2 id=\"ur-only-repeated-only-unique-and-counts\">Only Repeated, Only Unique and Counts<\/h2><p>\u0646\u06cc\u0627 <strong>What to output<\/strong> \u0645\u06cc\u0646\u0648 \u0627\u06cc\u06a9 \u06c1\u06cc \u0641\u06c1\u0631\u0633\u062a \u0633\u06d2 \u0645\u062e\u062a\u0644\u0641 \u0633\u0648\u0627\u0644\u0648\u06ba \u06a9\u06d2 \u062c\u0648\u0627\u0628 \u062f\u06cc\u062a\u0627 \u06c1\u06d2:<\/p><ul><li><strong>Remove duplicates (keep one of each):<\/strong> \u0645\u0639\u0645\u0648\u0644 \u06a9\u0627 \u0637\u0631\u06cc\u0642\u06c1\u06d4<\/li><li><strong>Only lines that repeat:<\/strong> \u06c1\u0631 \u0648\u06c1 \u0644\u0627\u0626\u0646 \u0627\u06cc\u06a9 \u0628\u0627\u0631 \u062f\u06a9\u06be\u0627\u062a\u0627 \u06c1\u06d2 \u062c\u0648 \u0627\u06cc\u06a9 \u0633\u06d2 \u0632\u06cc\u0627\u062f\u06c1 \u0628\u0627\u0631 \u0622\u0626\u06cc \u06c1\u0648\u06d4 \u06cc\u06c1 \u062c\u0627\u0646\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0645\u0641\u06cc\u062f \u06c1\u06d2 \u06a9\u06c1 \u06a9\u06cc\u0627 \u062f\u06c1\u0631\u0627\u06cc\u0627 \u06af\u06cc\u0627 \u06c1\u06d2\u06d4<\/li><li><strong>Only lines that appear once:<\/strong> \u0635\u0631\u0641 \u0648\u06c1 \u0644\u0627\u0626\u0646\u06cc\u06ba \u062f\u06a9\u06be\u0627\u062a\u0627 \u06c1\u06d2 \u062c\u0648 \u06a9\u0628\u06be\u06cc \u0646\u06c1\u06cc\u06ba \u062f\u06c1\u0631\u0627\u0626\u06cc \u06af\u0626\u06cc\u06ba\u06d4<\/li><li><strong>Count of each line, most frequent first:<\/strong> <em>3 \u00d7 apple<\/em> \u062c\u06cc\u0633\u06cc \u0644\u0627\u0626\u0646\u06cc\u06ba \u062f\u06a9\u06be\u0627\u062a\u0627 \u06c1\u06d2\u060c \u0632\u06cc\u0627\u062f\u06c1 \u0628\u0627\u0631 \u0622\u0646\u06d2 \u0648\u0627\u0644\u06cc \u067e\u06c1\u0644\u06d2\u06d4<\/li><\/ul><p>\u0622\u067e \u06a9\u06d2 \u0628\u0627\u0642\u06cc \u0622\u067e\u0634\u0646\u0632 (\u06a9\u06cc\u0633 \u0646\u0638\u0631 \u0627\u0646\u062f\u0627\u0632 \u06a9\u0631\u0646\u0627\u060c \u0645\u0648\u0627\u0632\u0646\u06d2 \u0645\u06cc\u06ba \u062e\u0627\u0644\u06cc \u062c\u06af\u06c1 \u0646\u0638\u0631 \u0627\u0646\u062f\u0627\u0632 \u06a9\u0631\u0646\u0627\u060c \u062e\u0627\u0644\u06cc \u0644\u0627\u0626\u0646\u06cc\u06ba \u06c1\u0679\u0627\u0646\u0627) \u0686\u0627\u0631\u0648\u06ba \u0635\u0648\u0631\u062a\u0648\u06ba \u067e\u0631 \u0644\u0627\u06af\u0648 \u06c1\u0648\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p><h2 id=\"ur-faq\">FAQ<\/h2><details><summary>\u06a9\u06cc\u0627 \u0645\u06cc\u0631\u06cc \u0641\u06c1\u0631\u0633\u062a \u06a9\u06cc \u0627\u0635\u0644 \u062a\u0631\u062a\u06cc\u0628 \u0628\u0631\u0642\u0631\u0627\u0631 \u0631\u06c1\u062a\u06cc \u06c1\u06d2\u061f<\/summary><p>\u062c\u06cc \u06c1\u0627\u06ba\u06d4 \u0645\u0646\u0641\u0631\u062f \u0644\u0627\u0626\u0646\u06cc\u06ba \u0627\u0633 \u06a9\u0627\u067e\u06cc \u06a9\u06cc \u062a\u0631\u062a\u06cc\u0628 \u0645\u06cc\u06ba \u0631\u06c1\u062a\u06cc \u06c1\u06cc\u06ba \u062c\u0648 \u0622\u067e \u0631\u06a9\u06be\u062a\u06d2 \u06c1\u06cc\u06ba: \u0688\u06cc\u0641\u0627\u0644\u0679 \u067e\u06c1\u0644\u06cc \u06a9\u0627\u067e\u06cc\u060c \u06cc\u0627 Last occurrence \u0686\u0646\u0646\u06d2 \u067e\u0631 \u0622\u062e\u0631\u06cc \u06a9\u0627\u067e\u06cc\u06d4<\/p><\/details><details><summary>Apple \u0627\u0648\u0631 apple \u06a9\u0648 \u0688\u067e\u0644\u06cc\u06a9\u06cc\u0679 \u06a9\u06cc\u0648\u06ba \u0646\u06c1\u06cc\u06ba \u0633\u0645\u062c\u06be\u0627 \u06af\u06cc\u0627\u061f<\/summary><p>\u0688\u06cc\u0641\u0627\u0644\u0679 \u0637\u0648\u0631 \u067e\u0631 \u0645\u06cc\u0686 \u0628\u0627\u0644\u06a9\u0644 \u062f\u0631\u0633\u062a \u06c1\u0648\u062a\u0627 \u06c1\u06d2\u06d4 \u0627\u0646\u06c1\u06cc\u06ba \u0627\u06cc\u06a9 \u0633\u0645\u062c\u06be\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 Ignore upper and lower case \u0679\u06a9 \u06a9\u0631\u06cc\u06ba\u06d4<\/p><\/details><details><summary>\u062e\u0627\u0644\u06cc \u0644\u0627\u0626\u0646\u06cc\u06ba \u0628\u06be\u06cc \u06a9\u06cc\u0633\u06d2 \u06c1\u0679\u0627\u0624\u06ba\u061f<\/summary><p>Remove empty lines \u0679\u06a9 \u06a9\u0631\u06cc\u06ba\u06d4 \u062e\u0627\u0644\u06cc \u0644\u0627\u0626\u0646\u06cc\u06ba \u062d\u0630\u0641 \u06c1\u0648 \u062c\u0627\u062a\u06cc \u06c1\u06cc\u06ba \u0627\u0648\u0631 \u0688\u067e\u0644\u06cc\u06a9\u06cc\u0679 \u0633\u06d2 \u0627\u0644\u06af \u0631\u067e\u0648\u0631\u0679 \u06c1\u0648\u062a\u06cc \u06c1\u06cc\u06ba\u06d4<\/p><\/details><details><summary>\u06a9\u06cc\u0627 \u06a9\u0627\u0645\u0627 \u0633\u06d2 \u0627\u0644\u06af \u06a9\u06cc \u06af\u0626\u06cc \u0641\u06c1\u0631\u0633\u062a \u0686\u0644\u06d2 \u06af\u06cc\u061f<\/summary><p>\u0646\u06c1\u06cc\u06ba\u060c \u06cc\u06c1 \u0627\u06cc\u06a9 \u0622\u0626\u0679\u0645 \u0641\u06cc \u0644\u0627\u0626\u0646 \u067e\u0631 \u0686\u0644\u062a\u0627 \u06c1\u06d2\u06d4 \u067e\u06c1\u0644\u06d2 \u0641\u0627\u0626\u0646\u0688 \u0627\u06cc\u0646\u0688 \u0631\u06cc\u067e\u0644\u06cc\u0633 \u0633\u06d2 \u06a9\u0627\u0645\u0627 \u06a9\u0648 \u0644\u0627\u0626\u0646 \u0628\u0631\u06cc\u06a9 \u0628\u0646\u0627\u0626\u06cc\u06ba\u06d4<\/p><\/details><h2 id=\"ur-related\">Related tool guides<\/h2><p class=\"rel\"><a href=\"https:\/\/tools.phledu.com\/blog\/line-sorter-guide\/\">Line Sorter<\/a><a href=\"https:\/\/tools.phledu.com\/blog\/text-cleaner-guide\/\">Text Cleaner<\/a><a href=\"https:\/\/tools.phledu.com\/blog\/word-counter-guide\/\">Word Counter<\/a><\/p><\/div>\n<script type=\"application\/ld+json\">{\"@context\": \"https:\/\/schema.org\", \"@type\": \"FAQPage\", \"mainEntity\": [{\"@type\": \"Question\", \"name\": \"Does it keep the original order of my list?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Yes. Unique lines stay in the order of the copy you keep: the first copy by default, or the last copy if you choose Last occurrence.\"}}, {\"@type\": \"Question\", \"name\": \"Why were Apple and apple not treated as duplicates?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Matching is exact by default. Tick Ignore upper and lower case to treat them as the same line.\"}}, {\"@type\": \"Question\", \"name\": \"How do I remove blank lines too?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Tick Remove empty lines. Blank lines are deleted and reported separately from duplicates.\"}}, {\"@type\": \"Question\", \"name\": \"Can it handle a list separated by commas?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"No, it works one item per line. First turn the commas into line breaks with Find and Replace.\"}}, {\"@type\": \"Question\", \"name\": \"Is my list uploaded?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"No. All processing happens in your browser.\"}}, {\"@type\": \"Question\", \"name\": \"\u06a9\u06cc\u0627 \u0645\u06cc\u0631\u06cc \u0641\u06c1\u0631\u0633\u062a \u06a9\u06cc \u0627\u0635\u0644 \u062a\u0631\u062a\u06cc\u0628 \u0628\u0631\u0642\u0631\u0627\u0631 \u0631\u06c1\u062a\u06cc \u06c1\u06d2\u061f\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"\u062c\u06cc \u06c1\u0627\u06ba\u06d4 \u0645\u0646\u0641\u0631\u062f \u0644\u0627\u0626\u0646\u06cc\u06ba \u0627\u0633 \u06a9\u0627\u067e\u06cc \u06a9\u06cc \u062a\u0631\u062a\u06cc\u0628 \u0645\u06cc\u06ba \u0631\u06c1\u062a\u06cc \u06c1\u06cc\u06ba \u062c\u0648 \u0622\u067e \u0631\u06a9\u06be\u062a\u06d2 \u06c1\u06cc\u06ba: \u0688\u06cc\u0641\u0627\u0644\u0679 \u067e\u06c1\u0644\u06cc \u06a9\u0627\u067e\u06cc\u060c \u06cc\u0627 Last occurrence \u0686\u0646\u0646\u06d2 \u067e\u0631 \u0622\u062e\u0631\u06cc \u06a9\u0627\u067e\u06cc\u06d4\"}}, {\"@type\": \"Question\", \"name\": \"Apple \u0627\u0648\u0631 apple \u06a9\u0648 \u0688\u067e\u0644\u06cc\u06a9\u06cc\u0679 \u06a9\u06cc\u0648\u06ba \u0646\u06c1\u06cc\u06ba \u0633\u0645\u062c\u06be\u0627 \u06af\u06cc\u0627\u061f\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"\u0688\u06cc\u0641\u0627\u0644\u0679 \u0637\u0648\u0631 \u067e\u0631 \u0645\u06cc\u0686 \u0628\u0627\u0644\u06a9\u0644 \u062f\u0631\u0633\u062a \u06c1\u0648\u062a\u0627 \u06c1\u06d2\u06d4 \u0627\u0646\u06c1\u06cc\u06ba \u0627\u06cc\u06a9 \u0633\u0645\u062c\u06be\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 Ignore upper and lower case \u0679\u06a9 \u06a9\u0631\u06cc\u06ba\u06d4\"}}, {\"@type\": \"Question\", \"name\": \"\u062e\u0627\u0644\u06cc \u0644\u0627\u0626\u0646\u06cc\u06ba \u0628\u06be\u06cc \u06a9\u06cc\u0633\u06d2 \u06c1\u0679\u0627\u0624\u06ba\u061f\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Remove empty lines \u0679\u06a9 \u06a9\u0631\u06cc\u06ba\u06d4 \u062e\u0627\u0644\u06cc \u0644\u0627\u0626\u0646\u06cc\u06ba \u062d\u0630\u0641 \u06c1\u0648 \u062c\u0627\u062a\u06cc \u06c1\u06cc\u06ba \u0627\u0648\u0631 \u0688\u067e\u0644\u06cc\u06a9\u06cc\u0679 \u0633\u06d2 \u0627\u0644\u06af \u0631\u067e\u0648\u0631\u0679 \u06c1\u0648\u062a\u06cc \u06c1\u06cc\u06ba\u06d4\"}}, {\"@type\": \"Question\", \"name\": \"\u06a9\u06cc\u0627 \u06a9\u0627\u0645\u0627 \u0633\u06d2 \u0627\u0644\u06af \u06a9\u06cc \u06af\u0626\u06cc \u0641\u06c1\u0631\u0633\u062a \u0686\u0644\u06d2 \u06af\u06cc\u061f\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"\u0646\u06c1\u06cc\u06ba\u060c \u06cc\u06c1 \u0627\u06cc\u06a9 \u0622\u0626\u0679\u0645 \u0641\u06cc \u0644\u0627\u0626\u0646 \u067e\u0631 \u0686\u0644\u062a\u0627 \u06c1\u06d2\u06d4 \u067e\u06c1\u0644\u06d2 \u0641\u0627\u0626\u0646\u0688 \u0627\u06cc\u0646\u0688 \u0631\u06cc\u067e\u0644\u06cc\u0633 \u0633\u06d2 \u06a9\u0627\u0645\u0627 \u06a9\u0648 \u0644\u0627\u0626\u0646 \u0628\u0631\u06cc\u06a9 \u0628\u0646\u0627\u0626\u06cc\u06ba\u06d4\"}}]}<\/script>\n","protected":false},"excerpt":{"rendered":"<p>Need to remove duplicate lines from a list? Paste it into the free PHL Tools Duplicate Line Remover and get [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":27,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[3],"tags":[25,26,27,24,28,22,23],"class_list":["post-26","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tool-guides","tag-clean-text-list","tag-deduplicate-text-online","tag-delete-duplicate-lines-online","tag-duplicate-line-remover","tag-phl-tools","tag-phl-tools-blog","tag-remove-duplicate-lines"],"_links":{"self":[{"href":"https:\/\/tools.phledu.com\/blog\/wp-json\/wp\/v2\/posts\/26","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tools.phledu.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tools.phledu.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tools.phledu.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tools.phledu.com\/blog\/wp-json\/wp\/v2\/comments?post=26"}],"version-history":[{"count":2,"href":"https:\/\/tools.phledu.com\/blog\/wp-json\/wp\/v2\/posts\/26\/revisions"}],"predecessor-version":[{"id":61,"href":"https:\/\/tools.phledu.com\/blog\/wp-json\/wp\/v2\/posts\/26\/revisions\/61"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tools.phledu.com\/blog\/wp-json\/wp\/v2\/media\/27"}],"wp:attachment":[{"href":"https:\/\/tools.phledu.com\/blog\/wp-json\/wp\/v2\/media?parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tools.phledu.com\/blog\/wp-json\/wp\/v2\/categories?post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tools.phledu.com\/blog\/wp-json\/wp\/v2\/tags?post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}