Custom Text Processing Pipeline

Runs several text clean-up steps one after another, using a short list of named operations. Use it when you repeat the same sequence of edits, such as trimming spaces, removing blank lines and changing case, and want it done in one go.

Up to 1 MiB.

How to use the Custom Text Processing Pipeline

  1. Paste your text in the first box.
  2. In Steps, write one operation per line, in the order to apply them. Operations that need a value use a colon, such as add-prefix: - .
  3. Select Run steps. If a step cannot run, the error names the step. A long run shows Cancel, which stops it and discards the unfinished result.

Available operations

  • Case: uppercase, lowercase, title-case, sentence-case
  • Cleaning: trim-spaces, remove-empty-lines, join-lines, remove-line-breaks, remove-duplicate-lines, remove-punctuation, remove-numbers, remove-emojis, remove-html-tags, remove-accents, remove-invisible, fix-pdf-text, remove-timestamps, nfc
  • Lines: sort-lines, sort-lines-desc, reverse-lines, number-lines, add-prefix: text, add-suffix: text
  • Replace: replace: old text => new text (plain text, not a pattern)

Safety and limitations

  • Only these operations can run; steps are never executed as code. Lines starting with # are comments. Up to 30 steps.
  • The text after every step must stay within 4 MiB; a step that would make it larger stops the run with an error naming that step. A run stops after 2 seconds of processing.
  • Your steps are not saved. To reuse a pipeline, copy the steps and keep them, then paste them next time.

Worked examples

Clean and sort a list

Your text

  Banana
apple

banana
Cherry  

Steps

# tidy, lowercase, dedupe and sort
trim-spaces
remove-empty-lines
lowercase
remove-duplicate-lines
sort-lines

Result

apple
banana
cherry
Make a bulleted list

Your text

First item
Second item

Steps

trim-spaces
add-prefix: - 
replace: item => task

Result

- First task
- Second task

Practical uses

  • Cleaning a pasted list in one go

    An analyst receives an untidy list with extra spaces, blank lines and repeated entries. They write the steps trim-spaces, remove-empty-lines, remove-duplicate-lines and sort-lines, one per line, then select Run steps. The whole clean-up happens in one run instead of four separate visits to different tools.

  • Reusing the same edits each week

    A coordinator handles the same weekly export and writes the sequence of steps once. The steps are not saved by the tool, so they copy the list into a note and paste it back each week. New text can then go through the same edits with very little effort.

Privacy: this tool runs entirely in your browser. Your text is not uploaded, logged or saved, and it is never sent to analytics. Maximum input: 1 MiB.