CraftTools

Add Line Numbers

Guide: How to Clean Up Text Copied From PDFs and Websites

0 lines

Nothing you enter or choose here leaves your device. This tool runs in your browser.

Before and after

Before:
Select the file
Choose a format
Press Convert

After, starting at 1 with a dot:
1. Select the file
2. Choose a format
3. Press Convert

Paste your text with one item per line, choose where to start, how to count and what goes after the number, and copy the result.

The settings

SettingWhat it doesExample
Start atThe first number. Any whole number, including 0 or a negativeStart at 0 for code-style counting
Count byThe step between numbersCount by 10 for 10, 20, 30
After the numberThe separatorA dot, a bracket, a colon, a dash, a tab, or your own text
Line up numbers withPadding so every number has the same widthZeros give 01, 02, 03 and spaces give right-aligned numbers
Skip empty linesLeaves blanks unnumbered without using up a numberUseful for text with paragraph gaps

Why you'd number lines

  • Code listings and snippets in documents, so a reader can say line 14.
  • Contracts and legal drafts, where a comment refers to a line.
  • Poems, lyrics and scripts, for discussion and study.
  • Editing feedback. Number a draft, send it back and say change line 7.
  • Transcripts and lists that you want to reference by number.

Padding

Without padding, a list from 1 to 12 has numbers of different widths, so the text after them doesn't line up. Choose zeros and you get 01 to 12. Choose spaces and the numbers are right-aligned. The width follows the biggest number, so a list of 150 lines is padded to three digits, 001 to 150.

Skipping empty lines

With Skip empty lines on, blank lines stay blank and don't use a number. A text in three paragraphs becomes one continuous run of numbers across the paragraphs, which is usually what you want for a reference.

Taking numbers off

Switch to Remove line numbers and leading numbers such as 1. or 2) are stripped from every line. That's the quick way to clean a pasted code listing, a numbered list from a web page or an old numbered copy of your own draft. Check the result, since a line that really starts with a number, like a year, would lose it.

Text stays in your browser. To put the lines in order first, use the sort lines tool, and to join them into one line, remove line breaks. The find and replace tool helps with the rest.

Written by Akinrinmade Michael · Updated October 24, 2026

How to use

  1. 1Paste your text, one item per line.
  2. 2Set where to start, how to count and what goes after the number.
  3. 3Copy the numbered text.

Frequently asked questions

Is my text sent anywhere?

No. Everything runs in your browser, so your text never leaves your device.

Can I start at a number other than 1?

Yes. Set Start at to any whole number, including 0 or a negative one, and use Count by to step by 2, 5 or 10.

How do I get 01, 02, 03?

Choose zeros under Line up numbers with. The numbers are padded to the same width.

Can I leave empty lines unnumbered?

Yes. Tick Skip empty lines and they stay blank without using up a number.

Can I remove line numbers?

Yes. Switch to Remove line numbers and leading numbers such as 1. or 2) are stripped from every line.

Read the guide

Learn how this works and how to get the most from it.

Writing & text

How to Clean Up Text Copied From PDFs and Websites

Fix broken line breaks, double spaces and stray characters in copied text, then sort, number and tidy it in a few clicks.

3 min read

Remove Line Breaks

Join lines into one paragraph. Strip breaks from copied text.

Sort & Dedupe Lines

Sort lines A-Z, reverse them, remove duplicates and trim whitespace.

Find and Replace

Find and replace text online, with regex, case and whole-word options.

Character Counter

Count characters and check X, SMS and meta-description limits.