Add Text to Each Line Online
Prepend or append text to every line instantly with placeholder support.. Free, no signup, works in your browser.
About Add Text to Each Line
This tool adds custom text to the beginning or end of every line in your input. Use it to add bullet points, prefixes, suffixes, line numbers, HTML tags, or any repeated string to each line. The %N% placeholder inserts the line number and %L% inserts the original line content, giving you full control over the output format. Choose from several numbering styles including padded numbers. Ideal for formatting lists, generating numbered content, wrapping lines in tags, or preparing data for import. All processing runs in your browser — your text never leaves your device.
Frequently Asked Questions
How do I add a prefix to every line?
What does the %N% placeholder do?
Can I add text to both the beginning and end of each line?
What is the %L% placeholder?
What numbering styles are available?
Is there a limit on how many lines I can process?
Related Tools
View All TextRemove Line Breaks
Strip line breaks and clean up text formatting
Duplicate Line Remover
Remove duplicate lines from text
Sort Lines
Sort lines of text alphabetically, numerically, or by length
Text Repeater
Repeat any text or string multiple times
Whitespace Remover
Remove extra spaces, tabs, and whitespace from text
Text Wrapper
Wrap text to a specific column width