Add Line Numbers To Text

Number every line of a piece of text, starting at 1, so each line can be referred to by its number.

Runs in your browser — nothing is uploaded

Nothing is uploaded. Counting happens on your device.

Drop a .txt file here Tap to choose a .txt file

or browse your device — you can also paste (Ctrl+V)

Your camera and gallery open from the file picker

One file at a time. Files over 200 MB may be too large for browser processing.

    Your result will appear here.

    Free, no account, no sign-up. Nothing is uploaded. Everything runs on your device.

    Number every line of a piece of text, starting at 1, so each line can be referred to by its number. Paste code, a poem, a contract, a transcript or a list and the tool returns the same lines with 1., 2., 3. and so on at the start of each one. Numbered lines make proofreading notes precise, let reviewers point at an exact line in a document, and help teachers mark student work line by line. Empty lines are numbered too, so the numbers always match the original line positions. The work runs entirely in your browser, so nothing is uploaded, and the result can be copied or downloaded as a plain text file. If your text already has numbers at the start of lines, run it through once and check the result, since the new numbers are added in front of the old ones.

    How to use Add Line Numbers To Text

    1. Paste your text type, paste (Ctrl+V) or drop a .txt file into the box above.
    2. Click Convert the tool runs entirely in your browser — nothing is uploaded.
    3. Read your results they appear below the tool as soon as the conversion finishes.
    4. Download the result save it for your records.
    5. Convert another clear the box and paste new text — no sign-up, no limits.

    Format facts

    InputAny plain text, or a .txt file (dropped or browsed).
    EngineBuilt-in browser engine
    CategoryText Tools

    Limits

    • Browser processing has practical limits: files over 200 MB (or very long media) may be too large for your device. You will get an honest “too large” message, never a fake result.
    • Pasted content is handled as plain text — formatting from documents is not preserved.

    Frequently asked questions

    Is this tool free?

    Yes — free, no account, no sign-up, no limits. It runs entirely in your browser.

    Does my text get uploaded?

    No. The tool runs on your device; nothing you paste is sent to any server.

    Do empty lines get numbers?

    Yes — every line is numbered, including empty ones, so the numbers always match the original line positions.

    What if my text already has numbers?

    The new numbers are added in front of the existing ones. Remove old numbers first if you do not want two sets.