텍스트
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.
자주 묻는 질문
다양한 반전 모드는 무엇인가요?
세 가지 모드가 있습니다: 문자 순서 반전, 각 단어는 그대로 유지하면서 단어 순서 반전, 각 줄은 그대로 유지하면서 줄 순서 반전입니다.
문자 수준 반전이 읽을 수 없는 결과를 만들 수 있는 이유는 무엇인가요?
텍스트를 문자 단위로 반전하면 멀티바이트 유니코드 시퀀스, 이모지 또는 결합 문자가 깨져 시각적으로 손상된 모양이 될 수 있습니다. 단어나 줄 수준 반전은 전체 텍스트 블록을 이동하기 때문에 이런 문제가 없습니다.
입력한 텍스트가 서버로 전송되나요?
아니요, 반전은 브라우저에서 JavaScript로 완전히 실행되며 서버로 전송되지 않습니다.
자소 클러스터란 무엇인가요?
사람이 "하나의 보이는 문자"로 인식하는 단위이지만, 유니코드에서는 여러 코드 포인트로 이루어질 수 있습니다 — 예를 들어 가족 이모지는 특별한 결합자 문자로 연결된 여러 개의 개별 이모지로 구성됩니다. 올바른 텍스트 뒤집기는 이런 클러스터를 하나의 단위로 함께 유지해야 합니다.
이모지를 뒤집어도 올바른 형태를 유지할 수 있나요?
네, 뒤집기가 개별 코드 포인트가 아니라 자소 클러스터 단위로 문자열을 나눈 다음 순서를 바꾼다면 가능합니다 — 그러면 피부색 수정자나 국기 이모지처럼 여러 코드 포인트로 구성된 이모지도 연산 후 온전한 형태로 남습니다.