YourTools.
简体中文
Back to the catalog
Tools

Reverse text

Reverse the characters of text or of each line, the order of lines or words, or the items of a list or JSON array; emoji stay whole.

Process locally

Files stay in this browser session. Closing or clearing releases them.

Add text

Type or paste the text to process

Adjust settings

Optional: Reverse, List delimiter

Reverse text

Run

Processes in this browser; cancel at any time

Add text first

About this tool

Reverse text in five ways: all characters, the characters of each line, the order of lines, the order of words in each line, or the items of a delimited list or a JSON array. Use it to flip a log so the newest line comes first, reverse a list of names, write text backwards for a puzzle, or check a palindrome.

Characters are reversed as you see them, so emoji such as 👋🏽 and accented letters stay whole. In word mode the spaces stay where they are and only the words move; a list keeps its delimiter, and a JSON array comes back as JSON. Up to 1 MB of text is processed in your browser and is not uploaded.

How to use it

  1. Paste your text, or select Use example.
  2. Under “Reverse”, choose “All characters”, “Characters of each line”, “Line order”, “Word order in each line” or “List or JSON array items”.
  3. For a list, set the “List delimiter”: a comma by default, and \t stands for a tab.
  4. Select Run, then preview reversed.txt and download it.

Formats and limits

Input
Text
Output
Plain text
Size limit
1 MB
Settings
Reverse (All characters, Characters of each line, Line order, Word order in each line, List or JSON array items); List delimiter
Privacy
Files stay in the current browser session. No file bytes are uploaded.
Price
Free, no sign-up

Common questions

Why does “Word order in each line” leave my Chinese text unchanged?

Words are separated by spaces, so a Chinese sentence without spaces counts as one word. Choose “Characters of each line” to reverse it character by character instead. Punctuation moves together with the word it is attached to.

Why are the spaces in the wrong place after reversing a list?

The text is split exactly at the delimiter, so in a, b, c the last two items start with a space and the result is “ c, b,a”. Set the delimiter to a comma followed by a space to get c, b, a.

How are JSON arrays handled?

If the text starts with [ and is a valid JSON array, its top-level items are reversed and written as compact JSON on one line, while nested arrays keep their order; JSON format and validate can lay it out again. Integers above 9007199254740991 lose precision in this mode.

What is the difference between “All characters” and “Characters of each line”?

“All characters” turns the whole text around, so the last line comes first and every line is also spelled backwards. “Characters of each line” reverses each line but keeps the lines in their order.

Do emoji and accented letters survive?

Yes. Characters are reversed as people see them, so an emoji with a skin tone, a flag or a letter with a combining accent stays in one piece.