Text & writing

Reverse text or line order

Reverse characters, words or lines in plain text.

Reverse text or line order
Esc to restore

Your inputs

Results update as you type. Larger files run when you press Update result.

Your result

LOCAL & PRIVATE

Your result will appear here.

Your inputs stay in this browser. Nothing is uploaded or saved.

A clear answer. Here’s how.

Character mode uses Intl.Segmenter grapheme clusters to preserve combined accents and emoji sequences. Word mode reverses whitespace-separated words on each line and normalises spacing. Line mode reverses the line order.

See a worked example

Worked example

A fixed demonstration, separate from the values you enter above.

Text
Hello world
A second line
Reverse
Grapheme clusters

Example result

enil dnoces A
dlrow olleH