Backslash Symbol codes and values
| Format | Value |
|---|---|
| Unicode | U+005C |
| HTML (decimal) | \ |
| HTML (hex) | \ |
| CSS | \005C |
| JavaScript | \u005C |
The official Unicode name is "Reverse Solidus".
How to type the backslash symbol
Windows
- In Microsoft Word, type
005Cand press Alt + X to turn the code into \. - Or press Win + . to open the emoji and symbol panel and search for it.
Mac
- Press Control + Command + Space to open the Character Viewer and search for "reverse solidus".
- Or add the "Unicode Hex Input" keyboard in System Settings, hold Option and type
005C.
Linux
- In GTK apps press Ctrl + Shift + U, type
005cand press Enter.
Web pages
Write \ in HTML, or paste the character directly into a UTF-8 page.
Encoding details
| Encoding | Value |
|---|---|
| Code point | U+005C (decimal 92) |
| UTF-8 bytes | 5C |
| URL encoded | %5C |
| Category | Po |
What the backslash symbol means
The backslash is a typographical character primarily used in computing to denote file paths in Windows operating systems. Programmers also use it as an escape character in many coding languages and regular expressions.
Using the backslash symbol well
This is ASCII character U+005C. Be careful when writing string literals in code, as you often need to type two backslashes to represent a single literal backslash character.
Characters next to it in Unicode
| Character | Code | Name |
|---|---|---|
| Y | U+0059 | Latin Capital Letter Y |
| Z | U+005A | Latin Capital Letter Z |
| [ | U+005B | Left Square Bracket |
| ] | U+005D | Right Square Bracket |
| ^ | U+005E | Circumflex Accent |
| _ | U+005F | Low Line |
FAQ
What is the Unicode for the backslash symbol?
The backslash symbol \ is U+005C (Reverse Solidus).
How do I type \ on a keyboard?
There is no classic Alt code for it. On Windows type 005C in Word and press Alt + X, on Mac use the Character Viewer, and on Linux press Ctrl + Shift + U then 005c.
What is the HTML code for \?
Use \. The hexadecimal form is \.
More symbols
- ξ Xi Symbol: previous page
- ⚾ Baseball Symbol: next page
- Symbols to copy and paste: the full list