Hyphen-minus ASCII Code Symbol

- ASCII 45

ASCII Character

Hyphen-minus

ASCII byte 45 (0x2D) — Unicode U+002D. Standard ASCII is 0–127; extended bytes 128–255 use Windows-1252.

How to type -

Windows

  1. Copy - with the Copy Symbol button above and paste it anywhere.
  2. In HTML, use - or hex -.
  3. In JavaScript, use String.fromCharCode(45).
  4. You can also type this character with a Windows Alt Code (U+002D).

Mac

  1. Copy - with the Copy Symbol button and paste it (fastest method).
  2. Open System Settings → Keyboard → Input Sources and add Unicode Hex Input (if needed).
  3. Select Unicode Hex Input from the menu bar input menu.
  4. Hold Option (⌥), type 002D (from U+002D), then release Option.
  5. Or open Edit → Emoji & Symbols (or press Ctrl + Cmd + Space) and search for the character.
  6. In HTML on Mac editors, you can also paste -.

Linux

  1. Copy - with the Copy Symbol button and paste it.
  2. Press Ctrl + Shift + U, type 002d (from U+002D), then press Enter or Space.
  3. On GNOME, you can also use Ctrl + . (or Ctrl + ;) to open the character picker.
  4. In HTML, use -.

ASCII character details

Parameter Value Copy
Symbol -
Symbol Name Hyphen-minus
ASCII Decimal 45
ASCII Hex 0x2D
Unicode Code U+002D
HTML Decimal Code -
HTML Hex Code -
CSS Code \002D
JavaScript Code \u002D
Category ASCII Printable Characters (32–126)
Windows Alt Code View Alt Code

FAQs about Hyphen-minus ASCII Code Symbol

What is the ASCII code for Hyphen-minus ASCII Code Symbol?

ASCII decimal 45, hex 0x2D, Unicode U+002D.

How do I copy -?

Click Copy Symbol on this page to copy the character directly.

How do I type ASCII 45 in JavaScript?

Use String.fromCharCode(45) to output this character in JavaScript.

Does ASCII 45 have an Alt Code?

This character may also be typed with a Windows Alt Code — view details.

About this ASCII Character

ASCII byte 45 (0x2D, U+002D) is hyphen-minus. Part of the complete standard ASCII table (0–127).

Tags: hyphen-minus,ascii,extended-ascii,45,0x2D,U+002D,ascii table,copy symbol

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top