Home › Text Tools › Reverse Line Order

Reverse Line Order

Paste any list or text and flip its order so the last line becomes the first. Switch to paragraphs to move whole blocks while keeping their lines together, or to list items to reverse a comma-separated list.

Last updated:

Reverse
0 lines
0 lines

Advertisement
Advertisement

How to use the Reverse Line Order

  1. Paste your text into the Original box. A sample list is loaded to start.
  2. Choose what to reverse: Lines, Paragraphs or List items.
  3. Pick a separator in List items mode, such as comma or semicolon.
  4. Set the options: renumber numbered lists, remove empty lines or trim spaces.
  5. Press Reverse order. The output also updates as you type.
  6. Copy or download the reversed text.

Three ways to reverse, with examples

ModeInputOutputTypical use
LinesStep A
Step B
Step C
Step C
Step B
Step A
Logs and histories newest-first, countdown lists, undoing a sort
ParagraphsMon
notes 1

Tue
notes 2
Tue
notes 2

Mon
notes 1
Diary entries, changelogs, meeting notes, song verses
Paragraphs + inner linesMon
notes 1

Tue
notes 2
notes 2
Tue

notes 1
Mon
A full reversal that keeps the blank lines between blocks
List items (comma)red, green, blueblue, green, redTags, keyword lists, CSV rows, number sequences

How the renumbering works

When most units start with a number followed by a period or parenthesis (such as 1. or 4)), the tool rewrites those numbers after reversing so they count up from the smallest original number. Indentation, the punctuation style and the space after the number are kept. A list that started at 5 keeps starting at 5. Turn the option off when the numbers carry meaning, such as years, rankings or page numbers, and should travel with their line.

Tips

  • Exported chat logs, bank statements and server logs are usually oldest-first. Reverse the lines to read the latest entries first.
  • Reversing twice returns the original order, so you can always undo with Use as input and a second click.
  • Trailing spaces at the end of lines are removed in every mode; leading spaces (indentation) are kept unless Trim spaces is on.
  • Need a random order instead? Use the shuffle option in Sort Lines Alphabetically.

Frequently asked questions

How do I reverse the order of lines?

Paste the text, keep the Lines tab selected and press Reverse order. The last line moves to the top and the first line moves to the bottom. The characters inside each line are not changed.

What is the difference between reversing lines and reversing paragraphs?

Lines mode flips every single line. Paragraphs mode treats each block separated by a blank line as one unit, so a block of three lines stays in its original internal order while the blocks themselves swap places. Tick Also reverse lines inside each paragraph to flip both.

What happens to a numbered list?

With Renumber numbered lists on, a list like 1. 2. 3. that is reversed still reads 1. 2. 3. from the top, with the items in reverse order. Turn the option off to keep each item's original number, which shows a countdown such as 3. 2. 1.

Can I reverse a comma-separated list?

Yes. Choose List items and the comma separator. a, b, c becomes c, b, a and the spacing after each comma is kept. If you paste several lines, each line is reversed on its own, which is handy for CSV rows.

Is reversing the same as sorting Z to A?

No. Reversing only flips the current order, whatever it is, so a chronological log becomes newest-first. Sorting Z to A reorders by the letters themselves. Use the Sort Lines Alphabetically tool if you need alphabetical order.

Is my text sent to a server?

No. The reversal runs entirely in your browser, so private lists and logs never leave your device.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Sort Lines AlphabeticallySort a list A-Z, Z-A, numerically, naturally or by length, or shuffle it.Reverse Text GeneratorWrite text backwards, reverse words or lines, mirror or flip it upside down.Add Line NumbersNumber every line of your text with custom start, step, padding and separator, or remove numbers.Remove Empty LinesDelete blank and whitespace-only lines, or collapse gaps to one, with before/after line counts.Online Word ProcessorFree browser word processor with headings, lists, tables and images. Autosaves; export DOCX or PDF.Remove Line BreaksStrip line breaks and extra spaces, keep paragraphs if you want.Case ConverterConvert text to UPPERCASE, lowercase, Title Case, camelCase and more.MLA Format GeneratorBuild an MLA 9 heading, title page layout and Works Cited entries.Lorem Ipsum GeneratorGenerate placeholder text as paragraphs, words or lists, with HTML.Text RepeaterRepeat any text or emoji up to 100,000 times with custom separators.Find and Replace TextFind and replace words or regex patterns in any text, with match highlighting and undo.Add Prefix and Suffix to LinesAdd text to the start and end of every line: quotes, commas, bullets or SQL lists.Comma SeparatorTurn a column of lines into a comma separated list and back, with any delimiter.Text to Handwriting ConverterTurn typed text into realistic handwriting on notebook paper and save it as PNG or PDF.Japanese Kana ConverterConvert romaji to hiragana or katakana, kana to romaji, and hiragana to katakana instantly.Pinyin Tone ConverterTurn pinyin tone numbers (ni3 hao3) into tone marks (nǐ hǎo), or tone marks back into numbers.Remove Duplicate LinesDelete duplicate lines from any list, ignoring case or spaces, keep first or last, and sort.Remove Extra SpacesClean up double spaces, tabs, blank lines, non-breaking and invisible spaces in one click.Random Word GeneratorGenerate random English words by type, length, first letter and syllables, then copy them.List RandomizerShuffle a list into random order, pick random items or split it into fair teams.Email ExtractorPull every unique email address out of text or files, sort, filter by domain and export CSV.URL ExtractorExtract every link from text or HTML, remove duplicates, filter by domain or protocol.Strip HTML TagsRemove HTML tags and get clean plain text with line breaks and decoded entities.Online NotepadPrivate notepad that autosaves notes in your browser, with find, word count and .txt download.Remove PunctuationStrip all or only selected punctuation from text, with smart options for apostrophes and numbers.Text SplitterSplit long text into chunks by characters, words, lines or a delimiter, with numbering and copy.Remove AccentsStrip accents and diacritics from text (é→e, ñ→n, ß→ss, ø→o) instantly, live as you type.Sort NumbersPull numbers out of any text and sort them ascending or descending, with sum, average and median.Thread SplitterSplit long text into numbered X, Threads, Bluesky or Mastodon posts at sentence boundaries.Duplicate Word FinderFind repeated words in your text: doubled words like "the the" and overused words, highlighted.Alternating Caps GeneratorTurn text into aLtErNaTiNg caps, random caps or alternating words, then copy it.Random Paragraph GeneratorGenerate readable random English paragraphs by topic and length for writing and design.Random Sentence GeneratorGenerate random grammatical sentences: simple, compound, complex and questions.Markdown to Plain TextStrip Markdown syntax and keep clean plain text with lists, line breaks and link URLs.SRT to TextTurn SRT or VTT subtitles into a clean transcript with paragraphs, with or without timestamps.Transcript CleanerRemove timestamps, speaker labels and filler words like um and uh, and fix broken line breaks.Extract Numbers from TextPull every number out of text: decimals, negatives and percentages, with sum, average and CSV.Extract Phone NumbersFind phone numbers in any text, normalize them to E.164, remove duplicates and export CSV.One Word Per LineSplit any text into a list with one word per line; strip punctuation, dedupe, lowercase and sort.Recipe FormatterPaste a messy recipe and get clean ingredients, numbered steps, scaling and a printable card.Remove Words from TextDelete a list of words or phrases from any text and see how many times each one was removed.Pairwise Sequence Alignment ToolAlign two DNA or protein sequences, global (Needleman-Wunsch) or local (Smith-Waterman), with identity %.Sort Lines by LengthSort lines from shortest to longest or the reverse, with ties sorted A-Z and lengths shown.Sort Words AlphabeticallyPut the words in any text in A-Z or Z-A order, remove duplicates and pick a separator.Sentence SplitterSplit text into one sentence per line, smart about abbreviations, decimals and quotes.Text to Table ConverterTurn tab, comma, pipe or space separated text into a table to copy as rich text, Markdown or plain text.Text TruncatorShorten text to a character, word or sentence limit without cutting words, with an ellipsis.Bulk Find and ReplaceApply a whole list of find → replace pairs to your text at once, with a per-pair change log.Contraction ConverterExpand contractions (don't → do not) for formal writing or contract phrases for a casual tone.Count Duplicate LinesCount how many times each line appears, sorted by frequency, with duplicates-only and CSV export.Double Space TextAdd blank lines between lines or paragraphs (1.5, double, triple spacing) or remove them again.Em Dash ReplacerReplace em and en dashes with commas, hyphens or periods and normalize ellipses and fancy punctuation.Extract Domains from URLsPull hostnames or root domains out of URL lists, strip www, dedupe and count links per domain.List to Sentence ConverterTurn a list into a natural sentence with commas and “and” or “or”, with an Oxford comma toggle.Merge Lines Side by SideCombine two to four lists line by line with any separator, padding or filling uneven lengths.Remove Line NumbersStrip leading numbers like 1., 1), [1] or code line numbers from every line and keep the text.Remove Stop WordsStrip common stop words (the, and, of…) from text in 7 languages to reveal the keywords.Remove Text in BracketsDelete everything inside ( ), [ ], { }, < > or custom markers, with nested bracket support.Remove URLs from TextStrip links, www addresses and bare domains from text, plus emails, @mentions or hashtags.Trim Characters from LinesRemove the first or last N characters, or text before/after a marker, on every line.Paragraph to Bullet Points ConverterSplit paragraphs into bullet points by sentence or clause, with your choice of bullet style.Compare Two ListsFind items only in list A, only in list B, in both lists, or in either, with copy and sort.DOCX to Text ConverterExtract plain text from Word .docx files, in batch, with list markers, tables and .txt download.English to IPA ConverterConvert English text to IPA phonetic transcription in US or UK accent, with stress marks.Hidden Character DetectorFind and remove zero-width spaces, non-breaking spaces and other invisible Unicode characters.Letter to Number ConverterConvert letters to alphabet numbers (A=1 to Z=26) and back, with ASCII codes and letter sums.Markdown to Word ConverterConvert Markdown to a styled Word .docx file with headings, lists, tables, code and links.Plural GeneratorConvert English nouns from singular to plural and back, irregulars included, one word per line.
See all 96 Text Cleaning & Formatting →