Convert Emoji into Text

Convert Emoji into Text image

Introduction

In Python, translating emojis into text involves replacing the emoji characters with their text descriptions.


Installation:

pip install emoji

Source Code:

import emoji

text_with_emoji = "I ❤️  Python!"

emoji_as_text = emoji.demojize(text_with_emoji)
        
print("Emoji:", text_with_emoji)
print("Emoji to Text:", emoji_as_text)

Output

Output Image