1. Home
  2. Writing & text tools
  3. Add or Remove Line Numbers

Add or Remove Line Numbers

Number the steps of a recipe, the lines of a poem for discussion or a script for review. Or do the opposite: remove the numbers that came along when you copied code, a list or a transcript.

Free, no sign-up. Runs in your browser: nothing is uploaded.

How to use Add or Remove Line Numbers

  1. Paste the text.
  2. Choose Add or Remove, and the number format.
  3. Copy or download the result.

Features

  • Formats 1. · 1) · 1: · [1] · tab · Roman numerals · letters
  • Start number, step and zero or space padding
  • Leave blank lines unnumbered, or count them like a code editor
  • Remove numbers like 12. 3) [4] 007 iv. and optionally bullets

Supported formats

You can open

  • Typed or pasted text
  • TXT

You get

  • Copied text
  • TXT

Private by design

Your files are opened and processed by your browser on this device. They are never uploaded to openWorkstand or anyone else, so the Add or Remove Line Numbers is safe for contracts, IDs, photos and work documents. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • Removing numbers strips a number at the start of any line, so lines that really begin with a number lose it too.

Guide

Numbering lines, and removing numbers from copied text

Line numbers make a text easy to discuss: “look at line 14” is quicker than quoting it. They also get in the way when you copy code from a tutorial, a list from a website or a transcript from a PDF and the numbers come along. This tool does both jobs.

Choosing a format

The dot style (1. Text) is the usual choice for steps and lists. The parenthesis (1) Text) and colon (1: Text) styles suit legal outlines and logs, square brackets ([1] Text) suit references, and a plain space or a tab suits code and spreadsheets. Roman numerals and letters are available for outlines and appendices. The start number and the step can be changed, so you can continue a list at 21 or number by tens like old BASIC programs.

Alignment and padding

When numbers have different widths, the text after them starts in different places. Zero padding writes 01 to 10, or 001 to 100, which also keeps the lines in order if you sort them as text later. Space padding right-aligns the numbers instead, which looks tidy in a monospaced font and in code reviews.

Blank lines

Poems, scripts and code have empty lines that should usually stay unnumbered. With “Leave empty lines unnumbered”, numbering continues on the next line with text. If you need the numbers to match a code editor, where every line has a number even when it is blank, also turn on “but count them”: blank lines still get no visible number, but the counter advances, so line 12 here is line 12 in the editor.

Removing numbers and list markers

Switch to Remove to strip numbering from the start of each line. Recognised patterns include 12. and 12) and 12: , bracketed numbers like [3], padded numbers like 007, Roman numerals followed by a dot or bracket, and single letters such as b). A space or tab must follow the number, which protects lines that merely start with a number in a sentence, though a line like “2026 was a good year” would still lose its year, so read the result. Turn on the bullet option to remove •, -, * and similar markers as well.

Where it helps

Teachers number the lines of a poem or a passage for close reading. Writers number script lines for a table read. Developers number code for a review or remove numbers from code copied off a website. Anyone formatting instructions can number the steps before printing them.

Nothing leaves your browser

Numbering and removing numbers run on your device. The text is never uploaded, so it is safe for unpublished drafts and private code.

A worked example

A recipe pasted with blank lines between its steps looks like this: “Preheat the oven”, “Mix the flour”, an empty line, “Add the butter”. With the dot format, start 1, step 1 and “Leave empty lines unnumbered” on, the result reads 1. Preheat the oven, 2. Mix the flour, an empty line, 3. Add the butter. Turn on “but count them” and the third step becomes 4, matching the line numbers a code editor would show. Switching to Remove on that result gives back the original text, empty line included, which is an easy way to check that nothing else changed.

Put the list in order first with Sort Text Lines, add other text to each line with Add Prefix and Suffix, or clean up broken lines from a PDF with the Text Cleaner.

Checked against the current version of the Add or Remove Line Numbers on .

Troubleshooting

The file does not open

Check that it is one of the supported formats above and opens in another app. Damaged files and password-protected PDFs cannot be read until they are repaired or unlocked.

It is slow or stops on a very large file

Everything runs on your device, so speed depends on its memory. Close other tabs, use a computer rather than a phone, or split the file into smaller parts first.

The download did not start

Look for your browser’s download bar or icon. Some browsers ask once before a site may download files; allow it and click the button again.

Frequently asked questions

How do I number only every fifth line, like a poem in a textbook?

This tool numbers every line. Number them with a tab separator, paste the result into a spreadsheet, and clear the numbers you do not want; or keep the full numbering, which is the easiest for a class to follow.

Which format should I use for pasting into Excel?

Choose “1 ⇥ Text”. The number and the text are separated by a tab, so Excel and Google Sheets put the number in one column and the line in the next.

What happens to text indented with spaces when I remove numbers?

The indentation before the number is kept and only the number and the space after it are removed, so nested lists and indented code keep their structure.

Will removing numbers delete numbers inside my sentences?

No. Only a number at the very start of a line followed by a space or tab is removed, such as “12. ” or “[3] ”. A line like “2026 was a good year” loses “2026 ” only, so check lines that genuinely begin with a number.

Can the numbers line up when they have different widths?

Choose zero padding (01 … 10) or space padding, which right-aligns 1 to 100 so the text after the numbers starts in the same column in a monospaced font.

Keep working with the result

After you download, choose “Save to Workstand” to keep the result in a folder on your computer, attach it to a project and create a follow-up task. It is saved by your browser, not uploaded.