DevKits

ASCII 45

Hyphen-Minus (-)

Printable ASCII

Hyphen / minus. Subtraction, negative numbers, and word separator in kebab-case slugs.

All encodings at a glance

Decimal45
Hexadecimal0x2D
Octal0055
Binary00101101
HTML numeric entity-
URL encoding%2D
UTF-8 bytes0x2D

Code snippets

JavaScript

String.fromCharCode(45); // "-"
45.toString(16); // "2d"

Python

chr(45)           # '-'
ord(chr(45))      # 45
hex(45)           # '0x2d'

HTML

&#45;   <!-- numeric entity (no named entity for this character) -->

Nearby codes