Line formatter
Format multiline text with consistent prefixes, suffixes and line numbers.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Text
Formatted result
The result is ready to copy.
Enter text to format
Original lines: 0 · Formatted: 0 · Skipped: 0
What this tool does
- Add a consistent marker to copied text.
- Add line numbers or suffixes to lists.
- Normalize surrounding whitespace on every line.
Example
Input
alpha beta
Output
- alpha - beta
Trim lines, skip empty lines, add prefixes, suffixes and numbers.
Frequently asked questions
What does empty input return?
An empty string.
Where does numbering start?
At 1, using each original line position.
Can empty lines be preserved?
Yes, they are preserved by default and can be skipped.
Keywords:行格式化line formatterprefixsuffixtext formatting