Text Tool

Line Tools

Number, prefix, suffix, join, split, or count the lines in your text — a full line-editing toolkit in one page.

Advertisement
Line Tools
Add line numbers, prefix/suffix to lines, extract lines, join lines
Input Text
Output

Disclaimer. This tool is provided for informational purposes only. Verify important results independently. Read full disclaimer →

About Line Tools

Line-level text manipulation includes adding line numbers (useful for code sharing and document referencing), removing empty lines, joining multiple lines into one (with customisable separator), splitting a single line into multiple lines at a delimiter, adding a prefix or suffix to each line, and extracting lines matching a specific pattern.

Practical applications: adding line numbers to code snippets before sharing in a document or presentation; extracting all email addresses from a text file by filtering lines matching the email pattern; joining CSV rows into a single line for API payloads; adding a consistent prefix like "- " to convert plain lines into a bulleted list; splitting a long string of comma-separated values into one value per line for easier editing. These line-level operations complement regex-based tools for comprehensive text processing.

Frequently Asked Questions

Join Lines combines every line of your input into a single line, inserting the character or string you specify in the "Join char" field (comma-space by default) between each original line.
It takes the full input as one block, splits it wherever a comma appears, trims whitespace from each resulting piece, and outputs one piece per line — the reverse operation of joining.
The Add Prefix and Add Suffix buttons apply independently — click one, copy or note the result, then apply the other to the modified text if you need both applied together.
It prepends each line with its 1-based line number followed by a period and space, e.g. line one becomes "1. line one" — useful for referencing specific lines in code snippets or documents.
Advertisement