Back to tools
Text & Analysispublic tool

Line Numbers

Add configurable line numbers to a block of text, or strip existing ones back out — padded, dotted, or colon-delimited.

Mode
Add numbers
Input lines
6
Output lines
6
Stripped
—

Text

Numbering from 1

Options

Applies to the result below

Original

6 lines

const config = {
    port: 3000,
    host: "0.0.0.0",
}

export default config

Result

Separator “: ” · pad 0

1: const config = {
2:     port: 3000,
3:     host: "0.0.0.0",
4: }
5: 
6: export default config