Remove emojis from text
Transformed in your browser Β· nothing is uploaded
Removes emoji and pictographs, including skin-tone modifiers and the joined sequences that look like one character but are made of several.
How to use the remove emojis from text
A family emoji is genuinely five codepoints joined by zero-width joiners, and a skin-toned thumbs-up is two. Matching a fixed codepoint range, which is what most emoji-removing snippets do: deletes part of a sequence and leaves the remains behind as stray characters. Matching on the Extended_Pictographic property plus the joiners handles the whole cluster, and keeps working as Unicode adds new emoji rather than needing the range updated. Worth knowing why you might want this: emoji in a filename, a CSV or a database column with the wrong collation cause real problems, and stripping them is often easier than fixing the encoding.
Questions
They match a fixed codepoint range. A family emoji is five codepoints joined together, so a partial match leaves the remains.
Yes, the modifiers are removed with the emoji they belong to.
Yes. It matches on the Extended_Pictographic property rather than a hard-coded range.
Filenames, CSV imports and database columns with the wrong collation all break on them.
Only pictographs. Currency symbols, arrows and maths symbols are kept.