Skip to content

text.fancy

silly text: mocking case, l33t, uwu, Pig Latin, zalgo, upside-down, ๐›๐จ๐ฅ๐ and ๐’ฎ๐’ธ๐“‡๐’พ๐“…๐“‰ letters, emoji

Rewrites text for fun rather than use. Each function takes a string and returns it restyled, such as mocking case, l33t, uwu, Pig Latin, zalgo, upside-down, bold and script letters, or emoji.

Tags: formatting

  • mock aLtErNaTiNg CaSe, the internetโ€™s way of quoting someone sarcastically
  • leet l33t sp34k: letters swapped for look-alike digits
  • uwu rewrite text in cutesy internet โ€œuwuโ€ speak
  • pig_latin translate to Pig Latin, the word game where the first consonants move to the end and โ€œayโ€ is added
  • zalgo Zฬทaฬธlฬตgฬถoฬด text: pile random accent marks onto every character
  • flip turn text upside down, using look-alike characters in reverse order
  • style swap letters and digits for Unicode look-alikes, like bold or script
  • styles the names of the letter styles style() can use
  • emoji the emoji with that name, like โ€œtacoโ€, or nil if thereโ€™s none
  • emojify replace :name: codes in text with their emoji, as chat apps do
mock(s: str) -> str

aLtErNaTiNg CaSe, the internetโ€™s way of quoting someone sarcastically

1
"this is fine".mock"tHiS iS fInE"
Example outputCtrl+Enter to run

See also upper, leet

leet(s: str) -> str

l33t sp34k: letters swapped for look-alike digits

1
"elite hacker".leet"3l173 h4ck3r"
Example outputCtrl+Enter to run

See also mock

uwu(s: str) -> str

rewrite text in cutesy internet โ€œuwuโ€ speak

1
"hello friend, I really love this".uwu"hewwo fwiend, I weawwy wuv this ^w^"
Example outputCtrl+Enter to run

See also mock

pig_latin(s: str) -> str

translate to Pig Latin, the word game where the first consonants move to the end and โ€œayโ€ is added

Capitals and punctuation stay put

1
"Hello, string theory!".pig_latin"Ellohay, ingstray eorythay!"
Example outputCtrl+Enter to run

See also caesar

zalgo(s: str, marks: int = 3) -> str

Zฬทaฬธlฬตgฬถoฬด text: pile random accent marks onto every character

1
"he comes".zalgo"h\u{357}\u{354}\u{33f}e\u{352}\u{343}\u{36a} c\u{30e}\u{30b}\u{35a}o\u{31f}\u{338}\u{333}m\u{314}\u{34b}\u{337}e\u{337}\u{368}\u{36c}s\u{34b}\u{327}\u{35b}"
2
"ok".zalgo(1)"o\u{325}k\u{36f}"
Example outputCtrl+Enter to run

See also flip

flip(s: str) -> str

turn text upside down, using look-alike characters in reverse order

1
"hello world".flip"plษนoส ollวษฅ"
Example outputCtrl+Enter to run

See also reverse, zalgo

style(s: str, style: str) -> str

swap letters and digits for Unicode look-alikes, like bold or script

They keep their look when pasted where formatting isnโ€™t allowed, like a social media bio. style names one from styles(). Screen readers may read them poorly

1
"Hello".style("bold")"๐‡๐ž๐ฅ๐ฅ๐จ"
2
"vaporwave".style("wide")"๏ฝ–๏ฝ๏ฝ๏ฝ๏ฝ’๏ฝ—๏ฝ๏ฝ–๏ฝ…"
Example outputCtrl+Enter to run

See also styles, banner, fonts

styles() -> list

the names of the letter styles style() can use

1
styles()["bold", "italic", "bold_italic", "script", "fraktur", "double", "sans", "sans_bold", "mono", "wide", "circled", "small_caps", "strike", "underline"]
Example outputCtrl+Enter to run

See also style

emoji(name: str) -> str|nil

the emoji with that name, like โ€œtacoโ€, or nil if thereโ€™s none

1
emoji("taco")"๐ŸŒฎ"
2
emoji("fire")"๐Ÿ”ฅ"
Example outputCtrl+Enter to run

See also emojify

emojify(s: str) -> str

replace :name: codes in text with their emoji, as chat apps do

Codes it doesnโ€™t know are left alone

1
":fire: deploy on friday :skull:".emojify"๐Ÿ”ฅ deploy on friday ๐Ÿ’€"
Example outputCtrl+Enter to run

See also emoji

1
# reply to a bad take
2
"tabs are better than spaces".mock"tAbS aRe BeTtEr ThAn SpAcEs"
3
# every letter style
4
styles().map(|st| "Zil 2".style(st))["๐™๐ข๐ฅ ๐Ÿ", "๐‘๐‘–๐‘™ 2", "๐’๐’Š๐’ 2", "๐’ต๐’พ๐“ 2", "โ„จ๐”ฆ๐”ฉ 2", "โ„ค๐•š๐• ๐Ÿš", "๐–น๐—‚๐—… ๐Ÿค", "๐—ญ๐—ถ๐—น ๐Ÿฎ", "๐š‰๐š’๐š• ๐Ÿธ", "๏ผบ๏ฝ‰๏ฝŒ ๏ผ’", "โ“โ“˜โ“› โ‘ก", "ZษชสŸ 2", "Z\u{336}i\u{336}l\u{336} 2\u{336}", "Z\u{332}i\u{332}l\u{332} 2\u{332}"]
5
# table flip
6
"(โ•ฏยฐโ–กยฐ)โ•ฏ " + "zil".flip"(โ•ฏยฐโ–กยฐ)โ•ฏ lแด‰z"
7
# a commit message
8
":rocket: ship it :tada:".emojify"๐Ÿš€ ship it ๐ŸŽ‰"
Example outputCtrl+Enter to run

Example results generated on 2026-11-04. Ones using now, today or randomness will differ when you run them.