Identify Combining Marks in Cursed Unicode Text
How cursed (Zalgo-style) Unicode text is built from stacked combining marks, how to identify them by code point and category, and when plain text is the better choice.
Cursed Unicode text is usually called Zalgo or glitch text. It looks corrupted, with symbols spilling above and below the line. It is not a font or an image. It is ordinary letters followed by many combining marks, which are code points designed to attach to the character before them. To judge whether that kind of text will work for your purpose, you need to identify those marks and understand what happens to them when the text is copied, searched, read aloud or transformed.
Short answer: is cursed text suitable for your use?
Cursed text suits short, decorative, throwaway uses where the visual noise is the point and nobody needs to search, edit or listen to the words. Its main benefit is that it needs no special font or image and travels as copyable text. Its decisive tradeoff is that every visible letter carries a hidden load of extra code points. That extra load degrades accessibility, search, length limits and editing. Use plain text for names, usernames, headings, anything people must find or quote, and any content that must work with screen readers. If you use cursed text at all, place a plain version next to it.
What the transformation actually changes
Cursed text changes the stored characters, not just how they look. A generator inserts combining marks after each base letter. Many of these marks come from the Combining Diacritical Marks block (U+0300 to U+036F), the same block that supplies ordinary accents such as the combining acute accent, U+0301. A renderer stacks each mark on or around the preceding base character. Because no precomposed glyph exists for most of these stacks, the marks pile up and overflow the line.
This separates cursed text from other effects that people loosely call reversing, mirroring or fonts. CSS styling and bidirectional display controls change how characters are shown while the underlying characters stay the same. Character substitution, such as the so-called fancy fonts built from mathematical alphanumeric symbols, replaces each letter with a different code point. Cursed text keeps the original letters and adds code points. So a search for the base word may still partially work, but an exact-match comparison will fail.
How to recognize combining marks
The reliable test is the Unicode General Category of each code point. Combining marks fall into three categories:
- Mn (Nonspacing Mark): takes no horizontal space of its own; most cursed-text marks are in this category.
- Mc (Spacing Combining Mark): combines with a base but takes space; common in scripts such as Devanagari.
- Me (Enclosing Mark): surrounds the base, such as the combining enclosing circle.
Besides the main block, combining marks also come from these blocks:
- Combining Diacritical Marks Extended (U+1AB0 to U+1AFF)
- Combining Diacritical Marks Supplement (U+1DC0 to U+1DFF)
- Combining Diacritical Marks for Symbols (U+20D0 to U+20FF)
- Combining Half Marks (U+FE20 to U+FE2F)
Block membership alone is not enough, because combining marks also appear inside many script blocks. The category is the better signal.
Visual clues help when you cannot inspect code points directly. Watch for these signs:
- The cursor or arrow keys skip over a whole stacked letter in one step.
- Backspace removes marks one at a time while the letter stays.
- A character counter reports far more characters than you can see.
Inspecting a sample by code point
Any tool that lists each code point with its name and category will expose the structure. Useful search terms are "Unicode code point inspector", "Unicode character identifier" and "show Unicode code points". Specific online tools were not verified for this article, so check that a tool reports the General Category before relying on it. Python's standard unicodedata module does this offline, without sending your text anywhere:
import unicodedata
def inspect(text):
for ch in text:
cat = unicodedata.category(ch)
name = unicodedata.name(ch, "<unnamed>")
flag = " <- combining mark" if cat.startswith("M") else ""
print(f"U+{ord(ch):04X} {cat} {name}{flag}")
inspect("a\u0301\u0316\u0334")
For that sample, a single visible "a" turns out to be four code points:
| Code point | Category | Name |
| U+0061 | Ll | LATIN SMALL LETTER A |
| U+0301 | Mn | COMBINING ACUTE ACCENT |
| U+0316 | Mn | COMBINING GRAVE ACCENT BELOW |
| U+0334 | Mn | COMBINING TILDE OVERLAY |
A real cursed string repeats this pattern with dozens of marks per letter. The first non-mark code point in each run is the base letter, and everything after it is decoration.
Removing or limiting the marks safely
Unicode normalization does not clean cursed text by itself. NFC and NFKC compose a base and a mark only where a precomposed character exists, so most stacked marks survive either form. A common cleanup is to decompose with NFD and then drop every code point in a mark category:
def strip_marks(text):
decomposed = unicodedata.normalize("NFD", text)
return "".join(c for c in decomposed
if not unicodedata.category(c).startswith("M"))
This approach is blunt. It also deletes legitimate accents, which changes meaning in languages such as French, Spanish and Vietnamese. It breaks scripts that depend on combining vowel signs, including many South and Southeast Asian scripts. A gentler approach keeps the first one or two marks after each base and drops the rest. Another is to flag any base carrying more marks than ordinary text would need. No universal threshold is established here, so choose one based on the languages your content actually contains.
Reversing cursed text
Reversal tools that flip code points one by one damage text that contains combining marks. Take "ab" with an acute accent on the b, stored as "a", "b", U+0301. A naive reversal produces U+0301, "b", "a". The accent now comes first, with no base to attach to, and the b loses its accent. Correct reversal works on grapheme clusters, the user-perceived characters defined in Unicode Standard Annex #29. Each base travels with all of its marks. The same rule protects multi-code-point emoji, such as sequences joined with zero-width joiners or modified with skin-tone code points. Before trusting a reverse-text tool with cursed or accented input, test a sample like this one.
Will it stay readable after copying or sharing?
Copying usually preserves the combining marks, because they are ordinary text. What happens next depends on the destination.
- Rendering: fonts and apps differ in how they stack marks. Some clip the overflow, some let it cover neighboring lines, and some show placeholder boxes. One good-looking result does not predict others.
- Length limits: each mark counts toward character or byte limits, so a short phrase can exceed a field's limit or get truncated mid-letter.
- Search and matching: the stored string no longer equals the plain word, so exact search, filtering and deduplication may miss it unless the system strips marks first.
- Editing: cursor movement, selection and deletion behave unpredictably across stacked marks, which makes corrections tedious.
- Moderation and filtering: some destinations may strip, reject or flag heavy mark stacking. Whether a given platform does so was not verified here.
Accessibility is the most serious limit. Screen readers may announce mark names, read fragments or skip content. Behavior varies by product, version, language setting and verbosity configuration. No documentation or scoped test for a named screen reader was available for this article, so do not assume any particular one handles cursed text acceptably. Where the words matter, give a plain-text equivalent. Put it in the visible text or in an accessible label rather than relying on the decorated version alone.
Evidence gaps
This review relies on documented Unicode behavior: categories, block ranges, normalization and grapheme segmentation. It does not include tested results for specific social platforms, messaging apps, fonts or assistive technologies, and no generator or inspector tool was evaluated. Before publishing cursed text anywhere important, test your exact string in the exact destination, including with a screen reader if your audience may use one.