Rational numbers

ℚ is the Unicode character “DOUBLE-STRUCK CAPITAL Q” (U+211A). It is also known as rational numbers. It belongs to the Letterlike Symbols block and was added in Unicode 1.1. Click it to copy, or use the codes below.

ℚ codes

UnicodeCode point U+211A
HTML codeDecimal, works in any HTML page ℚ
HTML hexHexadecimal HTML code ℚ
CSSFor the CSS content property \211A
JavaScriptEscape in JavaScript strings \u211A
PythonEscape in Python strings \u211A
URL encodedPercent-encoded UTF-8 %E2%84%9A
UTF-8Bytes in UTF-8 E2 84 9A
UTF-16Code units in UTF-16 211A

How to type ℚ

Copy and paste

Click to copy it, then paste with Ctrl + V (⌘ + V on a Mac) or a long press on phones.

Windows

Press Win + . to open the emoji and symbol panel, then search for “rational numbers”.

In Microsoft Word, type 211A and press Alt + X.

Mac

Press Control + ⌘ + Space to open the Character Viewer, then search for “rational numbers”.

iPhone and Android

Copy it here and paste it. To type it again later, save it as a text replacement (iPhone: Settings › General › Keyboard › Text Replacement; Gboard: Settings › Dictionary › Personal dictionary).

HTML and CSS

Unicode U+211A. Every format is on the rational numbers page.

About ℚ

Unicode name
DOUBLE-STRUCK CAPITAL Q
Code point
U+211A (8474)
Block
Letterlike Symbols
Category
Uppercase Letter
Unicode version
1.1