-

U+002D HYPHEN-MINUS

Basic Latin · Dash punctuation

NameHYPHEN-MINUS
Code pointU+002D
Decimal45
BlockBasic Latin
CategoryDash punctuation (Pd)
UTF-82D
UTF-16002D
UTF-320000002D
HTML- -
CSS\002D
JavaScript\u002D
Python\u002d
URL-encoded%2D

Frequently asked questions

What is the character U+002D?

U+002D - is officially named HYPHEN-MINUS. It belongs to the Basic Latin block and the category Dash punctuation.

How do I type -?

Windows (Word, WordPad): type 002D, then press Alt+X. Linux (GTK/IBus): Ctrl+Shift+U 002d, then Space. macOS: enable the “Unicode Hex Input” keyboard, hold Option and type 002D. Or simply copy it from this page.

How do I write - in HTML?

As a numeric character reference - (decimal) or - (hexadecimal). In UTF-8 documents you can also insert the character directly.

How is - encoded in UTF-8?

In UTF-8 the character takes 1 bytes: 2D. In UTF-16: 002D.

Nearby entries