テキスト
Text Reverse
テキストを反転:文字単位、単語単位(単語の順序)、行単位(行の順序)から選択。
This tool reverses text three different ways: by character (letters run in reverse order), by word (words swap places but stay intact), or by line (line order is flipped).
How to use it
- Pick a mode — by character, by word, or by line — depending on the result you need.
- Paste text and the result updates instantly as you type.
- Character mode correctly handles composite emoji and grapheme clusters without breaking them apart.
Common uses
- Creating mirrored text for a design or a puzzle.
- Flipping the order of lines in a list or log without reordering them by hand.
- Checking whether a string is a palindrome — text reversed by character is compared against the original.
Things to keep in mind
A naive reversal by Unicode code point breaks composite characters (emoji with modifiers, some languages' combining diacritics) — a correct implementation splits text into grapheme clusters rather than individual code points.
Word-mode reversal doesn't change the letter order inside each word — it only rearranges the words themselves, not a character-level reversal.
よくある質問
異なる反転モードは何ですか?
3つのモードがあります: 文字の順序を反転する、各単語をそのまま保持しながら単語の順序を反転する、または各行をそのまま保持しながら行の順序を反転する。
なぜ文字レベルの反転が読めない結果を生むことがあるのですか?
テキストを文字ごとに反転すると、マルチバイトのUnicodeシーケンス、絵文字、結合文字が壊れることがあり、視覚的に破損した表示になります。単語レベルまたは行レベルの反転はテキストのブロック全体を移動させるため、この問題はありません。
入力したテキストはサーバーに送信されますか?
いいえ、反転はブラウザ内で完全にJavaScriptで行われ、サーバーへの送信はありません。
書記素クラスタとは何ですか?
これは人間が「1つの見える文字」として認識するものですが、Unicodeでは複数のコードポイントから構成されることがあります — たとえば家族の絵文字は、特別な結合子文字で結ばれた複数の別々の絵文字から成ります。正しいテキスト反転は、こうしたクラスタを1つのまとまりとして保持する必要があります。
絵文字を正しい形のまま反転できますか?
はい、反転が順序を入れ替える前に文字列を個々のコードポイントではなく書記素クラスタに分割していれば可能です。その場合、肌の色の修飾子や国旗を持つ合成絵文字も、操作後にそのまま保たれます。