Skip to main content

Text & Lists

Line numbers Adder

Add line numbers to the supplied input. Enter the text, set the transformation rules, then copy the result.

Tool workspace

Your input stays in this browser.

Add the required input to continue.

Needs input

You can run the tool again after any change.

Options

Your result appears here

Add line numbers to the supplied input. Enter the text, set the transformation rules, then copy the result.

This tool runs open-source code from CyberChef by GCHQ (Apache License 2.0). See open-source credits.

Line numbers Adder prefixes each input line with an aligned number and a configurable offset.

11 alpha 12 beta Processing runs in the browser.

Instructions

  1. Provide text or data for this tool.
  2. Paste the lines in their original order.
  3. Set Offset to the number before the first displayed line.
  4. Remove or ignore the numbers before passing the result to a parser.

Example

Input: alpha beta

Settings: Line numbers Adder: Set Offset to 10.

Result: 11 alpha 12 beta

Limits

  • Line numbers Adder: The output changes every line by adding a numeric prefix.
  • Line numbers Adder: An offset does not alter the input content after the prefix.
  • Line numbers Adder: The operation runs in the browser and does not need a network service.