Text Fixer & Cleaner - Clean & Transform Lines

Clean, transform, and reformat your text lines with instant live preview.

Input
Type or Drag & Drop a file
Output
Output Options

Frequently Asked Questions

How do I remove duplicate lines from a list?
Enable Remove Duplicates in the Options panel. The first occurrence of each line is kept; all repeats are discarded.
Input
apple
banana
apple
cherry
banana
Output
apple
banana
cherry
To keep or remove lines based on a content pattern, use the Filter Lines tool.
How do I remove spaces from the start or end of each line?
Enable Trim Line Start to strip leading spaces, Trim Line End to strip trailing spaces, or both together.
Input
   apple
  banana
 cherry   
Output (both enabled)
apple
banana
cherry
How do I add text before or after every line?
Use the Prepend field to add text before each line and Append to add text after. Both fields apply to every non-empty line.
Input  (Prepend: "- ")
apple
banana
cherry
Output
- apple
- banana
- cherry
How do I split a comma-separated value into separate lines?
Set Split on to Comma. Each delimited value becomes its own output line. Works for any delimiter in the dropdown - comma, semicolon, pipe, tab, and more.
Input
apple,banana,cherry
Output
apple
banana
cherry
How do I delete everything before or after a certain character on each line?
Use Delete Before or Delete After and type the marker. Enable inclusive to also delete the marker itself.
Input  (Delete Before ":", inclusive)
Name: Alice
Name: Bob
Name: Carol
Output
Alice
Bob
Carol
For pattern-based substitutions within lines, try the Find & Replace tool.
How do I convert a plain list to HTML bullets or a numbered list?
Set Output Format to Bullet List (•) for a markdown-style list, Numbered (1. 2. 3.) for a plain numbered list, or HTML List (<ol>) for a full HTML ordered list.
Input  (Format: Numbered)
apple
banana
cherry
Output
1. apple
2. banana
3. cherry
How do I remove leading zeros from numbers?
Enable Remove Leading Zeros. Any line that looks like a number with leading zeros will have them stripped.
Input
007
042
0100
Output
7
42
100
How do I join all lines into a single comma-separated row?
Set Output Format to Joined (CSV). All lines are combined into one row using a comma as the separator - useful for building SQL IN clauses or config values.
Input
apple
banana
cherry
Output
apple,banana,cherry
Is my text sent to a server?
No. All processing runs entirely in your browser using JavaScript. Your data never leaves your device and is never stored anywhere.
Can I upload a text file instead of pasting my list?
Yes - click the upload button in the Input toolbar or drag and drop a file directly onto the input area. Plain text (.txt), CSV (.csv), TSV (.tsv), and Markdown (.md) files up to 5 MB are supported. Excel and Word files are not supported - export to .txt or .csv first.
How do I convert a list to a JSON array, quoted list, or other code-ready format?
Use the Output Format dropdown. JSON Array wraps every item in a JSON array (["item1","item2"]). Single Quoted and Double Quoted wrap each line in quotes - useful for SQL IN clauses or config values. Backtick Quoted works for JavaScript template literals. Hashtags prefixes each item with # and removes spaces. For SQL IN clause syntax and more formats, try the List to Format Converter.
Input  (Format: JSON Array)
apple
banana
cherry
Output
[
  "apple",
  "banana",
  "cherry"
]
How do I generate URL slugs from a list of titles or phrases?
Select URL Slug from the Output Format dropdown. Each line is lowercased, special characters are stripped, and spaces are replaced with hyphens - so "My Blog Post Title!" becomes my-blog-post-title. Multiple consecutive hyphens are collapsed, and leading/trailing hyphens are removed.
Input
My Blog Post Title!
About Us - Contact
Top 10 Tips & Tricks
Output
my-blog-post-title
about-us-contact
top-10-tips-tricks
How do I replace tab characters with spaces?
In the Options panel, check Tabs to 4 spaces to replace each tab with four spaces, or Tabs to single space to replace each tab with a single space. The two options are mutually exclusive - enabling one automatically disables the other. Useful for cleaning up data exported from spreadsheets where tabs separate columns.

Related reading

Share this tool

Featured on ToolDirs
© 2026 ListDiff

Free online list and text processing tools.