VOOZH about

URL: https://www.geeksforgeeks.org/python/convert-emoji-into-text-in-python/

⇱ Convert emoji into text in Python - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Convert emoji into text in Python

Last Updated : 9 Jan, 2026

Emojis are widely used in modern digital communication, but sometimes you may want to convert them into text for data processing, sentiment analysis, or cleaning text data. In Python, this can be easily done using the demoji module.

Installation

You can install the demoji module using pip:

pip install demoji

Note: The demoji module requires downloading the latest emoji codes from the Unicode Consortium, as the emoji list is frequently updated.

Using demoji to Convert Emojis into Text

Once the codes are downloaded, you can start converting emojis into descriptive text.

Example 1: Remove Emojis from Text

Output:

Good morning!

Example 2: Replace Emojis with Descriptive Text

Output

Happy birthday! :birthday cake::balloon:

Example 3: Detect Emojis in a String

Output:

{'☀️': 'sun', '😊': 'smiling face with smiling eyes'}

Example 4: Remove All Emojis from Text

Output:

Welcome to the party!

Related Articles:

Comment
Article Tags: