हिं हिन्दी

    Add line numbers to text

    Number lines and add a prefix or suffix to every line.

    Your text stays on this device

    About this tool

    This tool adds line numbers to every line of your text and can also add the same prefix and suffix to each line. You choose the start number, the style after the number (1. 1) 1: 1 - or a tab), zero padding such as 01–10, and whether empty lines are skipped. Use the prefix and suffix alone to wrap every line in quotes or add a comma at the end.

    At a glance

    What it does
    Number lines and add a prefix or suffix to every line.
    Price
    Free, no sign-up
    Works in
    Your browser, on phone or computer. Works offline after the first visit.
    Privacy
    What you type never leaves your device.

    How to number lines

    1. Paste your lines into the box.
    2. Set the start number and style, and type any prefix or suffix.
    3. Copy the result or download it as a .txt file.

    Private

    Your text stays in your browser and is never sent to a server.

    Instant

    Results update as you type, with nothing to install.

    Free

    No sign-up, no limits and no ads inside your writing space.

    Frequently asked questions

    How do I add numbers to each line of a list?

    Paste the list and keep "Add line numbers" ticked; every line gets a number straight away. For example, the lines "apple" and "mango" become "1. apple" and "2. mango".

    How do I add text to the beginning and end of every line?

    Type it in the prefix and suffix boxes. With numbers off, prefix ' and suffix ', turn "apple" into 'apple', which is handy for SQL lists and code.

    What does zero padding do?

    It gives all numbers the same width so they line up and sort correctly. With 12 lines, numbers run 01 to 12; with 120 lines, 001 to 120.

    Are blank lines numbered?

    Not by default: "Skip empty lines" leaves them blank and keeps the numbering continuous. Untick it to number every line, including blank ones.

    Is my text sent anywhere?

    No. Everything runs in your browser and your text never leaves your device. Nothing is stored on any server.