فارسی

Sort, Number and Wrap Text Lines

Sort, shuffle, reverse or number the lines of a list, and wrap long lines at the width you choose.

Use this tool in your browser without installing software.

About this tool

Line lists are everywhere: product names, emails, tags or the lines of a text file. This tool reads your text line by line and does the common jobs without a spreadsheet or a heavy editor. You can sort the lines alphabetically, turn on natural number order so item2 comes before item10, shuffle the list, reverse the order, or add numbers. Wrapping breaks lines longer than the width you set while keeping words whole. A pair of options trims stray spaces and drops blank lines. The original text is left untouched, the output of each action waits in the box below, and nothing is sent to a server.

How to use it

  1. 1

    Put the list in the box, with one item on each line.

  2. 2

    Set the case, number order, spacing and blank-line options.

  3. 3

    Pick an action and copy the result from the output box.

If the answer looks wrong

  • The output stays empty.

    The input box is empty or every line in it was blank. Put the text in and press the button again.

  • The number order is not what I expect.

    Turn on natural number order. Without it the comparison is character by character, so item10 comes before item2.

  • The numbers do not line up in a long list.

    Turn on the align option so one-digit numbers are padded with spaces.

Frequently asked questions

Does an action change the original text?

No, the input box is left as it is. Each button builds its own output from that text, so you can try several actions in a row and copy only the result you want.

How is natural number order different from a plain sort?

A plain sort compares character by character, so item10 comes before item2. With natural order the numbers inside a line are read as numbers, so item2 comes before item10; this suits file names and numbered lists.

What does wrapping do?

Every line longer than the width you enter is split into shorter lines. Words stay whole, and only a word wider than the width itself is broken in the middle; it is handy for preparing text for an email or a short message.

Where does numbering start, and what does aligning do?

Numbering starts at 1 and marks each line as “1. ”, “2. ” and so on. The align option pads one-digit numbers with spaces so the number column stays even in long lists.

What happens to blank lines and extra spaces?

By default the space at the start and end of every line is trimmed and blank lines are dropped from the output. If your text needs its spacing, turn off the blank-line and trim options.