# SortLines > SortLines is a free, browser-based text list workbench. It sorts, deduplicates, compares, reverses, randomizes and cleans line-based lists. All pasted text is processed locally in the browser and is never uploaded or stored on the server. ## English tools - [Sort lines](https://sortlines.com/sort-lines/): Sort lines A–Z, Z–A, naturally, numerically or by length, with optional cleanup and visible change review. - [Remove duplicate lines](https://sortlines.com/remove-duplicate-lines/): Keep one occurrence of each line, preserve order or sort the unique result. - [Remove empty lines](https://sortlines.com/remove-empty-lines/): Delete blank or whitespace-only lines, or collapse consecutive blank lines. - [Compare lists](https://sortlines.com/compare-lists/): Find items only in A, only in B, shared items, the union and the symmetric difference. - [Find duplicate lines](https://sortlines.com/find-duplicate-lines/): List repeated values with occurrence counts and line numbers. - [Randomize list](https://sortlines.com/randomize-list/): Shuffle a list or pick one or three random items. - [Reverse lines](https://sortlines.com/reverse-lines/): Reverse line order or flip consecutive pairs. - [Clean keyword lists](https://sortlines.com/clean-keyword-lists/): Trim, lowercase, deduplicate and sort SEO or PPC keyword exports. - [List to JSON](https://sortlines.com/list-to-json/): Convert one item per line to JSON strings or explicitly convert numeric values. - [Merge lists](https://sortlines.com/merge-lists/): Append, deduplicate, interleave or pair two lists by position. - [Text diff](https://sortlines.com/text-diff/): Compare two text versions line by line. - [Invisible character detector](https://sortlines.com/invisible-character-detector/): Locate invisible Unicode characters and preview selective repairs. - [List format converter](https://sortlines.com/list-format-converter/): Convert lines to PostgreSQL IN, YAML or Markdown. - [Compare spreadsheets by key](https://sortlines.com/compare-spreadsheets/): Match records by a unique identifier and export field changes from CSV, TSV or XLSX. - [Inventory audit guide](https://sortlines.com/audit-inventory-changes/): Trace new and missing SKUs to their source rows. - [About SortLines](https://sortlines.com/about/) - [Privacy policy](https://sortlines.com/privacy/) - [Contact](https://sortlines.com/contact/) ## Ferramentas em português do Brasil - [Ordenar linhas](https://sortlines.com/pt-br/ordenar-linhas/): Ordene linhas de A a Z, de Z a A, natural, numericamente ou por comprimento, com limpeza e revisão das alterações. - [Remover linhas duplicadas](https://sortlines.com/pt-br/remover-linhas-duplicadas/): Mantenha uma ocorrência de cada linha, preserve a ordem ou ordene o resultado único. - [Remover linhas vazias](https://sortlines.com/pt-br/remover-linhas-vazias/): Apague linhas em branco ou com apenas espaços, ou agrupe linhas vazias consecutivas. - [Comparar listas](https://sortlines.com/pt-br/comparar-listas/): Encontre itens apenas em A, apenas em B, em ambas as listas, a união e a diferença simétrica. - [Encontrar linhas duplicadas](https://sortlines.com/pt-br/encontrar-linhas-duplicadas/): Liste valores repetidos com contagem de ocorrências e números das linhas. - [Embaralhar lista](https://sortlines.com/pt-br/embaralhar-lista/): Embaralhe uma lista ou escolha um ou três itens aleatórios. - [Inverter linhas](https://sortlines.com/pt-br/inverter-linhas/): Inverta a ordem das linhas ou troque pares consecutivos. - [Limpar palavras-chave](https://sortlines.com/pt-br/limpar-palavras-chave/): Remova espaços, converta para minúsculas, elimine duplicatas e ordene exportações de SEO ou PPC. - [Converter lista para JSON](https://sortlines.com/pt-br/lista-para-json/): Converta linhas em um array JSON com textos ou números. - [Mesclar listas](https://sortlines.com/pt-br/mesclar-listas/) - [Comparar textos](https://sortlines.com/pt-br/comparar-textos/) - [Detectar caracteres invisíveis](https://sortlines.com/pt-br/detectar-caracteres-invisiveis/) - [Converter formatos de listas](https://sortlines.com/pt-br/converter-formatos-de-listas/) - [Comparar planilhas por chave](https://sortlines.com/pt-br/comparar-planilhas/) - [Auditar alterações de estoque](https://sortlines.com/pt-br/auditar-alteracoes-de-estoque/) - [Sobre o SortLines](https://sortlines.com/pt-br/sobre/) - [Política de privacidade](https://sortlines.com/pt-br/privacidade/) - [Contato](https://sortlines.com/pt-br/contato/) ## Notes - Canonical origin: https://sortlines.com - Languages: English (`en`) and Brazilian Portuguese (`pt-BR`). The English pages are the `x-default` alternate. - The old Spanish URLs under `/es/` permanently redirect to the corresponding `/pt-br/` pages. - Structured data: WebSite, Organization, SoftwareApplication, FAQPage and BreadcrumbList. - Sitemap: https://sortlines.com/sitemap.xml