Add Line Numbers

Prefix each line with a sequential number followed by a period and space.

Example

Input

First item
Second item
Third item

Output

1. First item
2. Second item
3. Third item

How Add Line Numbers Works

Prefix each line with a sequential number followed by a period and space.

This tool runs entirely in your browser — no data is sent to any server. Paste your text, click Run, and get your result instantly. You can also chain this tool with others using the pipeline feature: run Add Line Numbers, then continue with a related tool to build a multi-step text workflow.

TextRefinery is a free, open-source text processing toolkit. Learn more about regular expressions and text processing on the web.