Another solution is to use the name aliases and print them using the string literal \N

print('\N{grinning face with smiling eyes}')

Current list of name aliases can be found at: https://unicode.org/Public/15.0.0/ucd/UnicodeData-15.0.0d6.txt

Or the Folder for everything here: https://unicode.org/Public/

Answer from nth-attempt on Stack Overflow
🌐
PyPI
pypi.org › project › emoji
emoji · PyPI
Generally speaking it scrapes a table on the Unicode Consortium’s website with BeautifulSoup For more information take a look in the utils/README.md file. ... $ python -m pip install pyright mypy typeguard $ pyright emoji $ pyright tests $ mypy emoji $ pytest --typeguard-packages=emoji
Discussions

What is Unicode Emoji?
unicode emoji python is a powerful combination that allows you to work with emojis in your Python code. In this comprehensive guide, we'll walk you through More on epsilon.newpointe.org
🌐 epsilon.newpointe.org
11
Converting emojis to Unicode and vice versa in python 3 - Stack Overflow
I am trying to convert an emoji into its Unicode in python 3. For example I would have the emoji 😀 and from this would like to get the corresponding unicode 'U+1F600'. Similarly I would like to co... More on stackoverflow.com
🌐 stackoverflow.com
python 3.x - Python3 emoji characters as unicode - Stack Overflow
I have a string in python3 that has emojis in it and I want to treat the emojis as their unicode representation. More on stackoverflow.com
🌐 stackoverflow.com
Emoji's in Python???
It's just strings, and since python3 supports unicode directly in the source by default, and by default strings are in utf8, well, why wouldn't it work? You can get the underlying bytes with fruits[0].encode('utf8'), and see for yourself that it's just a bunch of bytes interpreted as a character. I don't know what source wants you to download an emoji package, maybe for more complex things like composite emojis? More on reddit.com
🌐 r/learnpython
5
27
April 1, 2018
People also ask

What is the purpose of Unicode Emoji?
The primary purpose of Unicode Emoji is to add tone and personality to digital communication, allowing users to express emotions and moods in a more expressive way.
🌐
epsilon.newpointe.org
epsilon.newpointe.org › home › f4d › 161 › unicode emoji python
Unicode Emoji Python - epsilon
What is the difference between Unicode Emoji and ASCII?
Unicode Emoji are a superset of ASCII characters, and include many more characters and symbols than ASCII, including emojis, ideographs, and symbols from various languages.
🌐
epsilon.newpointe.org
epsilon.newpointe.org › home › f4d › 161 › unicode emoji python
Unicode Emoji Python - epsilon
Can I use Unicode Emoji in programming?
Yes, you can use Unicode Emoji in programming languages like Python, JavaScript, and Java, and they can be displayed in terminal or console output.
🌐
epsilon.newpointe.org
epsilon.newpointe.org › home › f4d › 161 › unicode emoji python
Unicode Emoji Python - epsilon
🌐
MakeUseOf
makeuseof.com › home › programming › how to include emojis in your python code
How to Include Emojis in Your Python Code
April 11, 2021 - Unicode is a universal character encoding standard that assigns a code to every character and symbol in every language in the world. Every emoji has a unique Unicode assigned to it.
🌐
Carpedm20
carpedm20.github.io › emoji › docs › index.html
emoji — emoji documentation
emoji supports Python 3.8+. The last version to support Python 2.7 and 3.5 was v2.4.0. The main purpose of this package is converting Unicode emoji to emoji names and vice versa with emojize() and demojize().
🌐
Medium
medium.com › @HeCanThink › emoji-lets-deal-with-in-python-dcc88b1f8ab1
Emoji: Let’s Deal With It in Python 🤗 | by Manoj Das | Medium
August 10, 2023 - Emoji provide useful tools for working with emojis in Python, they also have certain limitations: Unicode Compatibility: Emoji libraries rely on Unicode character representations of emojis.
🌐
epsilon
epsilon.newpointe.org › home › f4d › 161 › unicode emoji python
Unicode Emoji Python - epsilon
The concept of Unicode emojis in Python dates back to the early 2000s, when the Unicode Consortium introduced the Unicode Standard, which provides a universal character set for representing text in computers.
Find elsewhere
🌐
Plain English
python.plainenglish.io › how-python-handles-emojis-and-unicode-the-fun-and-practical-guide-e22abfa2e499
How Python Handles Emojis and Unicode — The Fun and Practical Guide | by Moh Haziane | Python in Plain English
October 15, 2025 - To fix this limitation, developers created Unicode — a universal standard that assigns a unique number (called a code point) to every character and symbol used in writing systems across… ... New Python content every day.
🌐
Data Science Discovery
discovery.cs.illinois.edu › guides › Other-Forms-Of-Visualizations › using-emojis-in-python
Generating Emojis in Python - Data Science Discovery
April 12, 2024 - To generate emojis using Unicode escape sequences, simply use the \U escape sequence followed by the hexadecimal code point for the desired emoji. For example, the Unicode code point for the chipmunk emoji 🐿 is U+1F43F, which can be represented ...
🌐
Python documentation
docs.python.org › 3 › howto › unicode.html
Unicode HOWTO — Python 3.14.3 documentation
For example, there’s a character for “Roman Numeral One”, ‘Ⅰ’, that’s separate from the uppercase letter ‘I’. They’ll usually look the same, but these are two different characters that have different meanings. The Unicode standard describes how characters are represented by code points.
🌐
AskPython
askpython.com › python-modules › emoji-module
Python Emoji Module: A Complete Guide - AskPython
May 17, 2021 - Instead of using emoji names, we can directly use the Unicode value for an emoji.
Top answer
1 of 2
49

'😀' is already a Unicode object. UTF-8 is not Unicode, it's a byte encoding for Unicode. To get the codepoint number of a Unicode character, you can use the ord function. And to print it in the form you want you can format it as hex. Like this:

s = '😀'
print('U+{:X}'.format(ord(s)))

output

U+1F600

If you have Python 3.6+, you can make it even shorter (and more efficient) by using an f-string:

s = '😀'
print(f'U+{ord(s):X}')

BTW, if you want to create a Unicode escape sequence like '\U0001F600' there's the 'unicode-escape' codec. However, it returns a bytes string, and you may wish to convert that back to text. You could use the 'UTF-8' codec for that, but you might as well just use the 'ASCII' codec, since it's guaranteed to only contain valid ASCII.

s = '😀'
print(s.encode('unicode-escape'))
print(s.encode('unicode-escape').decode('ASCII'))

output

b'\\U0001f600'
\U0001f600

I suggest you take a look at this short article by Stack Overflow co-founder Joel Spolsky The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!).

2 of 2
4
sentence = "Head-Up Displays (HUD)💻 for #automotive🚗 sector\n \nThe #UK-based #startup🚀 Envisics got €42 million #funding💰 from l… "
print("normal sentence - ", sentence)

uc_sentence = sentence.encode('unicode-escape')
print("\n\nunicode represented sentence - ", uc_sentence)

decoded_sentence = uc_sentence.decode('unicode-escape')
print("\n\ndecoded sentence - ", decoded_sentence)

output

normal sentence -  Head-Up Displays (HUD)💻 for #automotive🚗 sector
 
The #UK-based #startup🚀 Envisics got €42 million #funding💰 from l… 


unicode represented sentence -  b'Head-Up Displays (HUD)\\U0001f4bb for #automotive\\U0001f697 sector\\n \\nThe #UK-based #startup\\U0001f680 Envisics got \\u20ac42 million #funding\\U0001f4b0 from l\\u2026 '


decoded sentence -  Head-Up Displays (HUD)💻 for #automotive🚗 sector
 
The #UK-based #startup🚀 Envisics got €42 million #funding💰 from l… 
🌐
Emojicopy
emojicopy.in › home › python emoji unicode list
Python Emoji Unicode List 🐍– Complete Emoji Codes for Developers
October 4, 2025 - A Python emoji is simply an emoji character displayed using Python. Since emojis are part of the Unicode standard, Python can print them directly in the console, use them inside strings, or render them in apps.
🌐
Educative
educative.io › answers › how-to-print-emojis-using-unicodes-in-python
How to print emojis using Unicodes in python
In python, emojis can be printed using their respective Unicodes. For example, the grinning face with big eyes emoji has a Unicode of U+1F603.
🌐
Python documentation
docs.python.org › 3 › howto › unicode.html
Unicode HOWTO — Python 3.13.5 documentation
A Unicode string is turned into a sequence of bytes that contains embedded zero bytes only where they represent the null character (U+0000). This means that UTF-8 strings can be processed by C functions such as strcpy() and sent through protocols that can’t handle zero bytes for anything other than end-of-string markers.
🌐
Medium
medium.com › analytics-vidhya › how-to-print-emojis-using-python-2e4f93443f7e
How to print 😁😛😋🤣emojis using python🐍 | by Keerti Prajapati | Analytics Vidhya | Medium
January 27, 2024 - By understanding the emojis well,I mean to understand how emojis represented or store in memory? Everything in memory is store in binary format so the emojis are. It is very difficult for us to identify emojis in binary format . For this problem we have various encoding methods. Method used for encoding the emojis is Unicode .Every emojis have predefined encoded Unicode character.
🌐
GeeksforGeeks
geeksforgeeks.org › python › introduction-to-emoji-module-in-python
Introduction to emoji Module in Python - GeeksforGeeks
July 23, 2025 - When we use the emojize() function, it converts the shortcode to the corresponding Unicode character, which is then rendered as the emoji in the output. Similarly, the demojize() function converts the Unicode character back into a readable shortcode.