Vai al contenuto
WriteWithin

Suite di strumenti di linea

Pulisci, ordina, unisci e filtra le righe in uno strumento browser privato, comprese le righe vuote che sembrano solo vuote.

Preimpostazioni

Vuoto e vuoto

Linee di filtro

Unici e ordine

Unisci e dividi

L'ordine di elaborazione è fisso: terminazioni di riga → gestione degli spazi vuoti → filtro → univoco → ordina/inverti → unisci/dividi/ridisponi.

Perché questo strumento è diverso

  • Suite completa in un unico posto: ordina, filtra, unisci e deduplica senza strumenti di salto
  • Cattura le righe "vuote" di soli spazi bianchi che altri dispositivi di rimozione non riescono a rilevare
  • Linee uniche e stabili che mantengono l'ordine visto per primo
  • Mantieni o rimuovi le righe contenenti testo, come un mini grep nel browser
  • Elaborazione privata nel browser in 16 lingue

Come rimuovere le righe vuote

Attiva Rimuovi righe vuote per eliminare le righe vuote. Abilita Considera solo gli spazi bianchi come vuoti per rimuovere anche le righe che sembrano vuote ma contengono spazi o tabulazioni.

Unisci e dividi linee

Unisci righe unisce ogni riga con il separatore (spazio, virgola o personalizzato). Rimuovi le interruzioni di riga si appiattisce in spazi. Le modalità di divisione suddividono il testo in frasi, larghezze fisse o delimitatore personalizzato. Riscorri aggiunge interruzioni di riga morbide per i paragrafi leggibili.

Ordina e inverti le righe

Ordina A→Z o Z→A in ordine alfabetico. Ignora maiuscole e minuscole quando si ordinano insieme i dolcetti “Apple” e “mela”. Le linee inverse vengono capovolte dall'alto verso il basso senza essere ordinate.

Rimuovi le linee duplicate/mantieni le linee univoche

Linee univoche (mantieni per prime) significa sia "rimuovi duplicati" che "mantieni solo linee univoche". La prima volta che appare una linea rimane; le copie successive vengono eliminate e l'ordine viene preservato.

Filtra le righe contenenti testo

Rimuovi le righe contenenti gocce ogni riga che corrisponde alla tua parola chiave. Mantieni le righe contenenti fa il contrario. Utilizza la distinzione tra maiuscole e minuscole quando è importante la distinzione tra maiuscole e minuscole.

Strumenti correlati

Pulizia spazi · Pulizia caratteri di testo · Conta righe · Maiuscole/minuscole · Pulizia URL

Why line-level text tools matter

Lists are where copy-paste chaos peaks. A Word bullet list becomes plain lines without bullets. Meeting notes repeat the same action item three times. Server logs arrive as thousands of rows and you only need errors. CSV exports include blank rows that break imports. A paragraph copied from a PDF sits as one long line — or fifty short ones — and neither shape fits your editor.

WriteWithin Line Tools handles structure: blank lines, duplicates, sorting, filtering, joining, splitting, and reflowing. Everything runs in your browser with no upload. Pair it with the Whitespace Cleaner when spacing inside each line also needs fixing.

What Line Tools does

Blank lines vs whitespace-only blanks

A truly blank line contains no characters at all. A whitespace-only line looks empty but holds spaces or tabs — common after HTML paste or sloppy CSV export. Turn on Treat whitespace-only as blank to catch both kinds. Remove blank lines drops them; for collapsing runs of empty rows without deleting every gap, use the Whitespace Cleaner’s collapse blank lines option on intra-line spacing workflows.

Stable unique lines

Unique lines (keep first) removes duplicate rows while preserving the order of first appearances. Unlike sort-then-unique approaches that scramble your list, stable dedupe keeps “Alice” before “Bob” exactly as you pasted them. This is the fastest way to clean email lists, tag clouds, SKU exports, and chat action-item dumps before sharing.

Filter: keep or remove containing text

Remove lines containing drops every row that matches your keyword — like a mini grep in the browser. Keep lines containing does the opposite, which is ideal for pulling ERROR rows from a log. Toggle case sensitive when letter case matters (HTTP vs http). Leave filter text empty to skip this step entirely.

Sort, reverse, and order

Sort A→Z or Z→A alphabetically. Ignore case when sorting groups “Apple” and “apple” together. Reverse lines flips top to bottom without alphabetical sorting — useful when a chat export arrived newest-first and you want chronological reading order.

Join, split, and reflow

Join lines merges every row with your separator — space, comma, semicolon, or a custom string. Remove line breaks flattens to spaces for prose cleanup. Split modes break text into sentences, fixed character widths, or a custom delimiter. Reflow (add line breaks) wraps long paragraphs at a chosen width — the Prose preset uses 72 characters for readable email copy.

Processing order (fixed pipeline)

Line Tools applies options in a fixed sequence:

  1. Normalize line endings for internal processing
  2. Remove blank lines (optionally treating whitespace-only rows as blank)
  3. Filter lines by keep/remove keyword match
  4. Deduplicate with stable first-seen order
  5. Sort alphabetically or reverse line order
  6. Join lines, remove breaks, split, or add soft wraps
  7. Restore your chosen line-ending style (preserve, LF, or CRLF)

Because filter runs before dedupe, you can keep only ERROR lines and then remove duplicates among them in one pass.

Presets for common jobs

  • Email paste — remove blank and whitespace-only lines
  • List cleanup — dedupe, sort A→Z ignoring case, LF endings
  • CSV prep — dedupe without sorting, LF endings
  • Prose reflow — join hard breaks, then wrap at 72 characters
  • Log filter — remove blanks, keep lines containing your keyword (case insensitive)

Presets are starting points. Add a filter keyword or switch sort direction after applying one.

Line Tools vs Whitespace Cleaner and Line Counter

The Whitespace Cleaner fixes spacing inside each line: double spaces, NBSP, zero-width characters, PDF mid-sentence joins, tab conversion. It can collapse or remove blank lines, but it does not dedupe, sort, filter by keyword, or reflow paragraph width. When both spacing and list structure are broken, run Whitespace Cleaner first, then Line Tools.

The Line Counter measures lines, words, and characters without changing text. Use it to verify poetry line limits, README length rules, or homework word counts after Line Tools shapes your content. It answers “how much?” — Line Tools answers “in what order and shape?”

For character-level cleanup — emoji, smart quotes, accents — use the Character Cleaner. For casing changes after sorting names, follow with the Case Converter.

Step-by-step: dedupe and sort a contact list

  1. Paste your list into the Line Tools input box.
  2. Enable Treat whitespace-only as blank and Remove blank lines.
  3. Turn on Unique lines (keep first) to drop duplicates.
  4. Choose Sort A→Z with Ignore case on for readable alphabetical order.
  5. Copy the output and paste into your spreadsheet or mail-merge tool.

Step-by-step: filter a log file

  1. Apply the Log preset or manually enable Remove blank lines and Treat whitespace-only as blank.
  2. Set Filter mode to Keep lines containing and enter ERROR (or your token).
  3. Leave case sensitivity off unless your log uses mixed-case level names.
  4. Optionally enable Unique lines if the same error repeats thousands of times.
  5. Copy the filtered rows into a ticket or summary email.

Common mistakes to avoid

  • Deduplicating before filtering — the pipeline filters first, but if you run the tool twice manually, filter before dedupe in your workflow thinking too.
  • Sorting when order matters — use stable unique without sort when sequence carries meaning (timeline, priority).
  • Expecting space collapse here — double spaces inside a line need the Whitespace Cleaner.
  • Joining CSV rows with commas blindly — if fields contain commas, fix structure in a spreadsheet; Line Tools joins whole lines, not columns.
  • Using Line Counter to clean — counting tools never modify text; always process first, then measure.

Benefits of browser-based line processing

  • Full suite in one place — sort, filter, join, and dedupe without hopping websites
  • Stable unique preserves first-seen order unlike many online dedupe tools
  • Whitespace-only blank detection catches lines other removers miss
  • Private processing — lists of emails, client names, and internal SKUs never leave your device
  • Composable with other WriteWithin text utilities in seconds

Real-world use cases

Newsletter and chat lists: dedupe before translating or mailing so recipients do not get the same reminder twice. Inventory and SKU exports: sort alphabetically, remove blanks, verify count in the Line Counter. PDF paragraphs: join broken lines with Remove line breaks, then reflow — or run Whitespace Cleaner PDF preset first for mid-sentence joins. Developer snippets: reverse stack traces, filter stack frames containing your package name, dedupe repeated warnings.

Teachers splitting reading passages by sentence, marketers shuffling hashtag lists for A/B caption tests, and researchers trimming bibliography dumps all share the same need: line-level control without opening a scripting environment. Line Tools fills that gap on machines where Python or shell access is blocked but the browser is always available.

Common questions

What is the difference between blank lines and whitespace-only lines? Blank lines have no characters. Whitespace-only lines contain spaces or tabs. Enable Treat whitespace-only as blank to remove both.

Do unique lines keep the original order? Yes. The first occurrence of each line stays; later copies drop. Order among unique lines is unchanged.

Is my text uploaded? No. Line Tools run entirely in your browser.

Can I count lines after processing? Yes. Paste the output into the Line Counter to confirm limits.

Should I clean spaces before or after line work? Whitespace Cleaner first when intra-line spacing is messy; Line Tools second for structure.

Domande frequenti

Qual è la differenza tra righe vuote e righe vuote con spazi?

Le righe vuote non hanno caratteri. Le righe vuote con spazi contengono solo spazi bianchi. Attiva Considera solo gli spazi bianchi come vuoti per catturarli entrambi.

Le linee uniche mantengono l'ordine originale?

SÌ. Le linee univoche mantengono la prima occorrenza di ogni riga e preservano l'ordine: non confondono l'elenco.

Il mio testo è stato caricato?

No. Gli strumenti Line vengono eseguiti interamente nel tuo browser. Il testo non lascia mai il tuo dispositivo.

In quale ordine vengono eseguite le opzioni?

Una pipeline fissa: normalizzazione delle terminazioni di riga, gestione degli spazi vuoti, filtro con parole chiave, linee univoche, ordinamento o inversione, quindi unione/divisione/aggiunta di interruzioni.