On this page (8)
Heart symbol on Linux: quick answer
Linux gives you several ways to type a heart symbol, and the best one depends on your desktop. On Ubuntu, Fedora Workstation and other GNOME-based systems, Ctrl + Shift + U is built in and works right away.
| Method | Steps | Gives |
|---|---|---|
| Unicode input | Ctrl + Shift + U → 2665 → Enter |
♥ (any heart by code) |
| Compose key | Compose < 3 | ♥ |
| GTK emoji chooser | Ctrl + . in a GTK text field → search “heart” | ❤️ 🖤 💕 and other emoji |
| Characters app | Open Characters → search “heart” → copy | ♥ ♡ ❤ ❦ and every heart |
Method 1: Ctrl + Shift + U (GTK and IBus)
- Click in a text field.
- Press Ctrl + Shift + U. An underlined u appears.
- Type the hex code.
- Press Enter or Space.
| Code | Heart |
|---|---|
2665 |
♥ |
2661 |
♡ |
2764 |
❤ |
2763 |
❣ |
2765 |
❥ |
2766 |
❦ |
2767 |
❧ |
This works in GTK apps such as Firefox and GNOME Text Editor, and in any app where IBus is active. Chromebooks use the same shortcut.
Method 2: The Compose key
The Compose key lets you type special characters with short, memorable sequences. For a heart, the sequence is Compose, <, 3, a nod to the classic <3.
Turn it on first. The setting lives in different places:
- Newer GNOME: Settings → Keyboard → Compose Key.
- Older GNOME: GNOME Tweaks → Keyboard → Compose Key.
- KDE Plasma: System Settings → Keyboard → advanced options, under the Compose key position.
Pick a key you rarely use, such as Right Alt or Menu. Then press it, release it, and type < followed by 3. The exact menu names vary between versions and distributions.
Method 3: Characters app or KCharSelect
- Open Characters (GNOME) or KCharSelect (KDE).
- Search for heart.
- Click a heart and copy it.
- Paste with Ctrl + V.
These apps show every heart your fonts support, including rare ones like ❦ and ☙, and they search by Unicode name. Try “floral” or “suit.”
Method 4: Emoji pickers
- GTK apps: press Ctrl + . (or right-click and choose Insert Emoji) to open the emoji chooser, then search “heart.”
- KDE Plasma: recent versions include an Emoji Selector app you can launch from the menu, often bound to Meta + ..
Hearts in LibreOffice
LibreOffice has its own tools, which work no matter which desktop you use:
- Insert → Special Character, then type “heart” in the search box and double-click the one you want.
- Alt + X: in recent versions of LibreOffice Writer, type
2665and press Alt + X to turn the code into ♥, just like in Microsoft Word.
If a heart looks wrong in your document, try a font with good symbol coverage, such as DejaVu Sans. The heart suit ♥ and empty heart ♡ pages explain the difference between the two classic text hearts.
Hearts in the terminal and code editors
- bash:
printf '\u2665\n'prints ♥ in a UTF-8 locale (bash 4.2+). - Vim: in insert mode, press Ctrl + V, then type
u2665. - Python:
print("\u2665")prints ♥.
Writing a paper? The heart symbol LaTeX guide covers \heartsuit and filled hearts.
Troubleshooting
- Hearts show as boxes: install fonts with wide symbol coverage. On Debian and Ubuntu,
fonts-noto-color-emojiadds color emoji, and DejaVu fonts cover the text hearts. - Ctrl + Shift + U opens something else: some apps (and some terminals) use that shortcut themselves. Use Compose or copy and paste instead.
- Compose < 3 types something else: you may have pressed the keys together. Press each one separately, in order.
- Emoji look black and white: your system lacks a color emoji font. Installing Noto Color Emoji usually fixes it.
For every heart’s code point and encoding, see the heart Unicode reference. For other operating systems, see how to type a heart symbol.