Backslash (\)
U+005CREVERSE SOLIDUSBasic Latin
Also known as back slash
The backslash \ is a keyboard symbol that leans to the left. It separates folders in Windows file paths and starts escape sequences in programming languages, such as \n for a new line.
Symbol codes
- Unicode
U+005C- Alt Code
Alt+92- HTML Code
\- CSS Code
\5C- HTML Entity
\- HEX Code
\
Symbols that look like \
- Forward Slash: The forward slash, which leans the other way and is used in web addresses.
- Set Minus: The set minus sign, a mathematical operator for set difference.
About Backslash
The backslash \ is a keyboard symbol that leans to the left. It separates folders in Windows file paths and starts escape sequences in programming languages, such as \n for a new line.
\ is encoded in Unicode as code point U+005C (decimal 92). Its official Unicode name is REVERSE SOLIDUS.
It belongs to the Basic Latin block (U+0000–U+007F), its General Category is Other Punctuation (Po), and it was added in Unicode 1.1, released in 1993. Its script value is Common: it is shared across writing systems rather than belonging to one.
Common uses
- Windows file paths, as in C:\Users\Public
- Escape sequences in programming, as in \n and \t
- Commands in LaTeX, as in \frac
Examples
- Windows path
- C:\Program Files
- Escape sequence
- "Line 1\nLine 2"
Sources: Unicode Character Database 18.0.0, the HTML Standard’s list of named character references, and Unicode’s code page mappings.
How to type or insert Backslash
- Windows
- Press the \ key above Enter on a U.S. keyboard layout. On a U.K. layout, it is the key left of Z.
- macOS
- Press the \ key above Return on a U.S. layout.
- iPhone and iPad
- Tap 123, then #+=; \ is in the second row.
- Android
- Tap ?123, then =\<; \ is on the second page of symbols.
- Any device
- Select Copy symbol, then paste with Ctrl+V, or ⌘+V on a Mac.
- Windows Alt code
- With Num Lock on, hold Alt, type 92 on the numeric keypad, then release Alt.
- Microsoft Word
- Type
005C, then press Alt+X. - macOS Character Viewer
- Press Control+⌘+Space and search for “reverse solidus”.
- Linux (GTK and IBus)
- Press Ctrl+Shift+U, type
005c, then press Space. - HTML
\or\. In a UTF-8 page you can also paste the character itself.- CSS
content: "\5C";in a::beforeor::afterrule.- JavaScript
"\u005C"
Technical properties
Unicode 18.0.0
- Code point
- U+005C
- Decimal
- 92
- Unicode name
- REVERSE SOLIDUS
- Block
- Basic Latin · U+0000–U+007F
- General category
- Other Punctuation (Po)
- Script
- Common
- Introduced
- Unicode 1.1
- JavaScript
- "\u005C"
Common questions about Backslash
What is the Backslash symbol?
The backslash \ is a keyboard symbol that leans to the left. It separates folders in Windows file paths and starts escape sequences in programming languages, such as \n for a new line. In Unicode it is U+005C, officially named REVERSE SOLIDUS. It is also known as back slash.
Which way does a backslash lean?
A backslash \ leans to the left, with its top to the left of its bottom. A forward slash / leans the other way.
Why do Windows paths use backslashes?
Windows uses \ to separate folders, as in C:\Users. Web addresses and macOS and Linux paths use the forward slash / instead.
How do I copy and paste the Backslash symbol?
Select Copy symbol at the top of this page, then paste with Ctrl+V on Windows and Linux or ⌘+V on a Mac. On a phone, tap Copy symbol, then touch and hold where you want it and choose Paste. \ pastes as ordinary text, so it works in documents, messages, and code.
How do I type the Backslash symbol on Windows?
Turn on Num Lock, hold Alt, type 92 on the numeric keypad, then release Alt. In Microsoft Word, type 005C and press Alt+X to turn the code into \. In any app, open Character Map from the Start menu, search for “reverse solidus”, then select and copy the character.
How do I type the Backslash symbol on a Mac?
Press Control+⌘+Space to open the Character Viewer, search for “reverse solidus”, and double-click the result to insert it.
How do I type the Backslash symbol on an iPhone or Android phone?
The simplest way is to copy it from this page and paste it where you need it. If you use it often, save it as a text shortcut: on iPhone, go to Settings > General > Keyboard > Text Replacement; with Gboard on Android, go to Gboard settings > Dictionary > Personal dictionary.
Can I use the Backslash symbol in Word, Google Docs, and social media?
Yes. \ is a standard Unicode character, so you can paste it into Microsoft Word, Google Docs, emails, and posts or bios on Instagram, X, Facebook, and TikTok. In Google Docs you can also choose Insert > Special characters and search for “reverse solidus”. In Word, choose Insert > Symbol > More Symbols, set from to Unicode (hex), and enter 005C as the character code.
Is the Backslash symbol an emoji?
No. \ is a text symbol, not an emoji. It takes the color and size of the surrounding text, and its exact shape depends on the font.
Why does the Backslash symbol show as a box or question mark?
An empty box or a question mark means the font on that device has no glyph for \. The character is still there: it appears correctly wherever a font covers Unicode’s Basic Latin block, and free font families such as Google Noto cover nearly all of Unicode.
What are the HTML and CSS codes for the Backslash symbol?
In HTML, write \ (decimal) or \ (hexadecimal), or the named entity \. In CSS, use content: "\5C"; in a ::before or ::after rule, and in JavaScript "\u005C". See all HTML codes.