How to type π on Windows
The knight of diamonds card symbol has no short Alt code. The quickest option is to copy it from the top of this page and paste it with Ctrl+V.
No numeric keypad?
Press Win+. to open the emoji panel, choose the Symbols tab (Ξ©) and search for "knight of diamonds card". Or open Character Map from the Start menu, find π, click Select, then Copy.
How to type π on a Mac
There is no direct keyboard shortcut for π on a Mac.
For any symbol, the Character Viewer works: press Control+β+Space, type "knight of diamonds card" in the search box and double-click the result. It will be remembered under Frequently Used.
How to type π on iPhone and iPad
The iOS keyboard does not include π, so the reliable way is to copy it from this page, then press and hold in any text field and tap Paste.
If you use it often, create a shortcut: open Settings β General β Keyboard β Text Replacement, paste π in the Phrase field and type a short code such as ;knight in the Shortcut field. Typing that code will then insert π anywhere.
How to type π on Android
Copy the symbol from this page, then long-press in a text field and choose Paste. Gboard also keeps a clipboard history: tap the clipboard icon on the toolbar to paste it again later.
For a permanent shortcut, open Gboard settings β Dictionary β Personal dictionary, add π as the word and a short code as the shortcut.
How to type π in Microsoft Word
- Type the Unicode hex code 1F0CC where you want the symbol.
- Press Alt+X. Word converts the code into π.
This works on Windows in Word, Outlook and OneNote and needs no numeric keypad. You can also go to Insert β Symbol β More Symbols, set the font to a Unicode font and type 1F0CC in the Character code box. In Excel, the formula =UNICHAR(127180) returns the symbol.
How to type π in Google Docs
Open Insert β Special characters, then either search for "knight of diamonds card" or draw the symbol in the sketch box. Click the result to insert it. In Google Sheets, use =CHAR(127180).
π in HTML, CSS and code
| Format | Code |
|---|---|
| HTML entity | 🃌 |
| HTML decimal | 🃌 |
| HTML hex | 🃌 |
CSS content | "\1F0CC" |
| JavaScript | "\u{1F0CC}" |
| Python | "\U0001F0CC" |
| URL encoded | %F0%9F%83%8C |
Because π is a standard Unicode character (U+1F0CC), you can also paste it directly into any UTF-8 file. The escaped forms above are only needed when the file encoding is uncertain or the symbol must be entered on a keyboard without it.
Where the knight of diamonds card symbol is used
This symbol appears mainly in Unicode reference charts and digital typography tests rather than real card games, since standard decks skip the Knight rank between Jack and Queen. It occasionally shows up in tarot-style or fantasy card projects, such as text listing suits: "π Knight of Diamonds".
Frequently asked questions
Why is there a Knight card in a deck of 52 cards? +
Standard 52-card decks don't have Knights. Unicode included them because some historic and tarot-style decks, like the Latin suited deck, use a four-rank court: Jack, Knight, Queen, King.
Is the Knight of Diamonds used in any real card game? +
It isn't part of standard poker or bridge decks. It appears in some regional decks, like the Spanish or Italian deck, and tarot-inspired games with an extra court rank.
What is the Alt code for the knight of diamonds card symbol? +
The knight of diamonds card symbol has no short Alt code. Copy it from this page, or in Word type 1F0CC and press Alt + X.
How do I type π on a Mac? +
There is no dedicated Mac shortcut for π. Open the Character Viewer with Control + Command + Space, search for "knight of diamonds card", and double-click it. Or copy it from this page.
How do I type the knight of diamonds card symbol on iPhone or Android? +
Phone keyboards do not include π by default. Copy it from this page and paste it, or add it as a text replacement shortcut in Settings so you can type it with a short abbreviation.
What is the HTML code for π? +
Use 🃌 in HTML. In CSS use content: "\1F0CC" and in JavaScript use "\u{1F0CC}".