Logo

Tutorials

  • C++
  • Docker
  • Java
  • JavaScript (alfatraining)
  • Jenkins
  • Python
  • The Ultimate React Course
  • Shell Scripting

How-To

  • Docker
  • Firefox
  • Games
  • Jenkins
  • Linux
  • macOS
  • Network
  • Others
  • Python
    • Print emojis natively
    • Run Python scripts from anywhere
    • Use built-in HTTP server
    • Pycharm
    • Pyreverse
    • Snippets
  • Shell Scripting
  • Software Design
  • Sphinx
  • Testing
  • Windows

Reference

  • Coding fonts
  • conda
  • Docker
  • git
  • Java
  • Kubectl
  • Linux
  • Logitech K860 - Special keys
  • Network
  • Oh-My-Zsh - Commands
  • Others
  • Pycharm
  • Python
  • reStructuredText & Sphinx
  • Shell Scripting
  • SQLite
  • VS Code
All-My-Notes
  • Python
  • Print emojis natively
  • View page source

Print emojis natively

As all emoji characters are defined within the UTF-8 standard, you can print emojis or any other UTF-8 character in Python natively.

For instance

>>> '\U0001F600'

will print the emoji character 1F600 (GRINNING FACE). To get the unicode encoding for a specific emoji, refer to the emoji list.

Alternatively, you may also refer to the emojis name, e.g.

>>> '\N{GRINNING FACE}'

which will also print the same emoji as above.

To get the name of an emoji as defined in Python, use the unicodedata module:

>>> import unicodedata
>>> unicodedata.name(chr(0x1F600))
    'GRINNING FACE'
>>> unicodedata.name('\U0001F600')
    'GRINNING FACE'
Previous Next

This page was last updated on Oct 08, 2026.

© Copyright 2021-2026, Arne Wohletz.

Built with Sphinx using a theme provided by Read the Docs.