Pembalik Teks

Balikkan teks, kata, atau baris secara online. Balik string, kalimat, atau seluruh paragraf secara instan.

Cara menggunakan Pembalik Teks

1

Masukkan Teks

Ketikkan atau tempel teks yang ingin Anda balik ke dalam kolom input

2

Pilih Opsi

Pilih apakah Anda ingin membalikkan seluruh text, words, atau lines

3

Dapatkan Hasil

Klik tombol 'Reverse' untuk mendapatkan teks terbalik secara instan

Alat Terkait

Text reverser online: reverse any text three ways

Text reverser online: reverse any text three ways

Reverse any text, flip the entire string, reverse the word order, or reverse each word individually, with ToolHQ's text reverser, paste your text, pick a mode, and copy the reversed result instantly.

A text reverser is a tool that takes a string of text and returns it in reversed order. Depending on the mode, it can reverse every character in the string ("hello" becomes "olleh"), reverse the order of words ("hello world" becomes "world hello"), or reverse each word's letters individually while keeping word order ("hello world" becomes "olleh dlrow").

Text reversal sounds like a novelty, but it has genuine practical uses: verifying palindromes, encoding simple messages, testing UI components with reversed strings, creative writing games, and working with right-to-left languages or data sequences that need to be read from the opposite end.

Key takeaways

  • Mode 1, Reverse string: every character flipped, "Hello" becomes "olleH"
  • Mode 2, Reverse word order: "Hello world" becomes "world Hello"
  • Mode 3, Reverse each word: "Hello world" becomes "olleH dlrow"
  • Processed in your browser, no data is sent anywhere
  • Reversing a palindrome returns the original text unchanged, a useful verification step

Three reversal modes explained

Mode 1: Reverse the entire string

The most straightforward mode: the last character becomes the first, the second-to-last becomes the second, and so on until the whole string is inverted.

  • "Hello, world!" becomes "!dlrow,olleH"
  • "racecar" becomes "racecar" (palindrome: unchanged)
  • "12345" becomes "54321"

This mode is useful for palindrome verification (if the output matches the input, you have a palindrome), for generating mirrored text for creative uses, and for any situation where the character sequence needs to be inverted completely.

Mode 2: Reverse word order

Words are kept intact but their order in the sentence is reversed. The first word becomes the last; the last word becomes the first.

  • "The quick brown fox" becomes "fox brown quick The"
  • "one two three" becomes "three two one"
  • "Hello world" becomes "world Hello"

This mode is useful for reordering structured data. A list of email addresses can be reversed by domain if each address is on one line and you reverse the word order within lines. Lists of items in a CSV row can be reordered quickly.

Mode 3: Reverse each word individually

Each word's internal character sequence is reversed, but the words stay in their original positions in the sentence.

  • "Hello world" becomes "olleH dlrow"
  • "The quick brown fox" becomes "ehT kciuq nworb xof"
  • "racecar level" becomes "racecar level" (both words are palindromes)

This mode creates a visually scrambled but structurally intact sentence, every word is backward but the sentence reads left to right. It is used in simple word puzzles, encoding games, and creative text effects.

According to Wikipedia's article on strings in computer science, a string reversal is one of the most fundamental string manipulation operations and is commonly used as a teaching exercise and a building block for more complex algorithms including palindrome detection.


When you need a text reverser

Palindrome verification. Run any text through Mode 1 and compare the output to the original. If they match, you have a palindrome. "racecar" reversed is "racecar", confirmed. "hello" reversed is "olleh", not a palindrome.

Creative writing and wordplay. Reverse text creates instant nonsense poetry, hidden messages, and word games. A sentence reversed can be an in-joke among a group who know the key. Reversing specific words mid-sentence creates a code that requires knowing which words are reversed.

UI and front-end testing. Testing right-to-left language support in a user interface requires RTL text strings. Reversing a sample sentence creates a quick synthetic RTL-style string that can be used to test layout without having a native RTL language translation available.

Data manipulation. Domain-sorting trick: if you have a list of email addresses and want to group by domain, reverse each address (Mode 1), sort alphabetically, then reverse each address again. The sort groups by domain because the domain becomes the first characters in the reversed version.

Encoding tricks. While text reversal is not encryption (it is trivially undone), it is useful for simple obfuscation in puzzles, games, and escape rooms where the goal is mild concealment rather than security.


Mini-story: An escape room designer wanted a puzzle where players had to "read the sign backwards." She typed the solution phrase into the text reverser, chose Mode 1, and got the character-reversed version, which she printed on a mirror-image sign in the room. Players could only read it by looking in a mirror or by recognising it as reversed text and manually flipping it. The puzzle added a layer of lateral thinking without requiring any technical knowledge from players.

Try ToolHQ's text reverser


How to use the text reverser

  1. Paste or type your text in the input box.
  2. Select a reversal mode. Choose "Reverse string" to flip every character, "Reverse word order" to rearrange words, or "Reverse each word" to invert each word's letters individually.
  3. View the output immediately in the result box.
  4. Copy the result. Use the copy button to take the reversed text to your clipboard.
  5. Verify palindromes by checking whether the reversed string matches the original input exactly (ignoring spaces and punctuation).

Mode comparison at a glance

Input Reverse string Reverse word order Reverse each word
"Hello world" "dlrow olleH" "world Hello" "olleH dlrow"
"one two three" "eerht owt eno" "three two one" "eno owt eerht"
"racecar" "racecar" "racecar" "racecar"
"A B C" "C B A" "C B A" "A B C"
"12 34 56" "65 43 21" "56 34 12" "21 43 65"

Note that for single-word inputs, Reverse string and Reverse each word produce the same result. Reverse word order is only meaningfully different for multi-word inputs.


Mini-story: A developer was writing unit tests for a string manipulation library. She needed test cases that covered all three reversal modes, including edge cases like single characters, palindromes, and strings with punctuation. She pasted her test strings into the text reverser, verified the expected outputs for each mode, and added them to her test suite in minutes, using the online tool as a quick reference rather than computing expected outputs by hand.


Frequently asked questions

What happens when I reverse a palindrome? A perfect palindrome (one that reads the same forwards and backwards as a character sequence) is unchanged by Mode 1. "racecar" reversed is "racecar." This makes Mode 1 a quick palindrome verification tool.

Does it handle punctuation and special characters? Yes. Punctuation, numbers, and special characters are treated like any other character and are included in the reversal. A reversed "Hello!" becomes "!olleH", the exclamation mark moves to the front.

Can I reverse multiple lines at once? Yes. The tool processes the full input including newlines. Each line is reversed independently in Modes 2 and 3, or the entire multi-line block is treated as one string in Mode 1.

Is reversed text useful for privacy? Not for real privacy. Reversal is immediately undone by anyone who runs it through the same tool. It works for light puzzle obfuscation but provides no meaningful security.

Is my text stored or sent anywhere? No. Processed in your browser, no data is sent anywhere. All reversal happens locally on your device.


The short version

A text reverser offers three distinct operations: flip every character (Mode 1), swap word positions (Mode 2), or reverse each word's internal letters while preserving word order (Mode 3). Each mode has different applications, palindrome checking, data manipulation, creative writing, and UI testing.

Reverse your text now at ToolHQ, three modes, instant output, no account needed.

For related tools, try palindrome checker to verify palindromes properly, or fancy text generator for decorative Unicode text styles.