U+0042

Capital letter BB

Capital letter B is a monochrome text character from the Unicode Basic Latin block, listed here under Basic Latin (ASCII). Copy it with one click, or use the hex, octal, decimal and HTML entity codes below to embed it in web pages, code, and documents. It is often searched for as "uppercase", "letter", "alphabet", "ascii".

Quick facts

Unicode
U+0042
Decimal
66
Hex
0x0042
Octal
0o102

Unicode identity

FormatValueCopy
Code pointOfficial Unicode notationU+0042
Official nameUnicodeData.txt, Unicode 18.0.0LATIN CAPITAL LETTER B
DecimalBase 1066
HexadecimalBase 160x0042
OctalBase 80o102
BinaryBase 20000000001000010
General categoryLetter, uppercaseLu
Unicode blockU+0000–U+007FBasic Latin
PlaneBasic Multilingual Plane (BMP, Plane 0)

HTML & CSS

FormatValueCopy
HTML entity (decimal)B
HTML entity (hex)B
CSS content escapeUse inside content: "…"\0042
URL encodedPercent-encoded UTF-8B

Programming languages

FormatValueCopy
JavaScript / TypeScript\u0042
JSONUTF-16 surrogate pairs\u0042
Python\u0042
Java / C# / Kotlin\u0042

Byte encodings

FormatValueCopy
UTF-81 byte42
UTF-16 (BE)0042
UTF-32 (BE)00000042

How to type Capital letter B

  • Windows

    Hold Alt and type +42 with the hex numeric keypad option enabled, or type 42 then press Alt+X in Word and most Office apps.

  • macOS

    Enable the Unicode Hex Input keyboard, hold Option, and type 0042. Or open Character Viewer (Control+Command+Space) and search "Capital letter B".

  • Linux

    Press Ctrl+Shift+U, type 42, then press Space or Enter in GTK apps. IBus and most terminals support the same sequence.

  • HTML, CSS & code

    Paste the character directly, or use the escapes above: B in HTML, \0042 in CSS, and \u0042 in JavaScript.

Official Unicode reference

Character name
LATIN CAPITAL LETTER B
Block
Basic Latin (U+0000–U+007F)
General category
Lu — Letter, uppercase

Data from the Unicode Character Database, version 18.0.0. See the official code chart for the Basic Latin block: U0000.pdf (PDF, unicode.org).

Frequently asked questions

How do I copy the Capital letter B symbol?

Click the Copy button at the top of this page, or select B and press Ctrl+C (Cmd+C on Mac). It is plain Unicode text, so it pastes into documents, chats, code, and design tools.

What is the Unicode code point for Capital letter B?

Capital letter B is U+0042 (decimal 66, hexadecimal 0x0042, octal 0o102). It lives in the Basic Latin block (U+0000–U+007F) of the Basic Multilingual Plane (BMP, Plane 0).

What is the official Unicode name of Capital letter B?

The Unicode Standard (version 18.0.0) names this character "LATIN CAPITAL LETTER B". Its General_Category is Lu (Letter, uppercase).

What is the HTML code for Capital letter B?

Use B or B. In CSS, use content: "\0042".

How do I type Capital letter B in code?

JavaScript: "\u0042". Python: "\u0042". JSON and Java: "\u0042". The UTF-8 byte sequence is 42.

Is Capital letter B an emoji?

No. Capital letter B is a text symbol and renders as a monochrome glyph in the current font. Some platforms may offer an emoji variant when U+FE0F is appended.

View all basic latin (ascii)