Skip to main content

Line Number Adder

v1.2.1

Add or strip line numbers with configurable offsets and padding.

Adds or removes line numbers from text with configurable starting number, padding width, and separator character — useful for preparing code samples, documentation, and diffs.

How to use
  • Paste text and the line numbers are added instantly.
  • Set the starting line number, separator (colon, tab, space), and zero-pad width.
  • Use "Remove" mode to strip existing line numbers from numbered text.
Lines: 0Non-empty: 0

Options

Output will appear here…