Astronomical Code Logo

Astronomical Code

Toolbox

Add Line Numbers

Add sequential line numbers to each line in your text

About this tool

This tool adds sequential line numbers to each line of your text. It's perfect for code snippets, logs, transcripts, or any content where you need to reference specific lines. You can customize the starting number, padding with leading zeros, and the delimiter between the number and text.

All processing happens in your browser — your data never leaves your device.

Settings

0 means no padding

Character(s) between number and text

Preview

1: First line

2: Second line

Input Text

Output

We value your privacy

We use cookies to enhance your browsing experience, serve ads, and analyze our traffic. By clicking "Accept All", you consent to our use of cookies.