Identify the ASCII backslash
How to recognize the ASCII backslash (U+005C, decimal 92), tell it apart from Unicode look-alikes, and judge whether a text transformation keeps it usable.
What the ASCII backslash is
The backslash is character 92 in ASCII. In Unicode it is U+005C, with the official character name REVERSE SOLIDUS. Because ASCII is the first block of Unicode, the value is the same in UTF-8, where it is stored as the single byte 5C, and in common single-byte encodings such as ISO 8859-1 and Windows-1252. Any character that looks like a backslash but has a different code point is a different character, even if it renders identically in a given font.
| Representation | Value |
| Decimal | 92 |
| Hexadecimal | 5C |
| Octal | 134 |
| Binary (7-bit) | 1011100 |
| Unicode | U+005C REVERSE SOLIDUS |
| UTF-8 bytes | 5C |
| HTML numeric reference | \ or \ |
| HTML named reference | \ |
| URL percent-encoding | %5C |
Is a backslash substitute suitable for your use?
Use only U+005C whenever software will interpret the text: Windows file paths, regular expressions, escape sequences in code, shell commands, JSON, configuration files and Markdown. In these contexts the backslash has a function, and a look-alike will not perform it. A look-alike can be reasonable in purely visual settings, such as a fullwidth form that matches the spacing of surrounding CJK text, or a mathematical operator in a formula where the meaning is set difference rather than a path separator. The decisive tradeoff is that visual similarity buys nothing functionally: a substitute breaks paths, commands and searches. Plain ASCII is preferable whenever anyone might copy the text, search for it, run it or hear it read aloud.
Telling the real backslash from look-alikes
Several Unicode characters resemble a backslash. Visual clues such as an unusually wide advance width, a lighter or heavier stroke, a different slant angle or a glyph that sits higher or lower than neighboring characters can hint at a substitute. These clues depend on the font, so appearance alone is not reliable. The only dependable check is the code point.
| Code point | Unicode name | Typical role | Compatibility-normalizes (NFKC) to U+005C? |
| U+005C | REVERSE SOLIDUS | ASCII backslash | Is the target itself |
| U+FF3C | FULLWIDTH REVERSE SOLIDUS | Fullwidth form for East Asian layout | Yes |
| U+FE68 | SMALL REVERSE SOLIDUS | Small form variant | Yes |
| U+29F5 | REVERSE SOLIDUS OPERATOR | Mathematical operator | No |
| U+2216 | SET MINUS | Set difference in mathematics | No |
| U+2572 | BOX DRAWINGS LIGHT DIAGONAL UPPER LEFT TO LOWER RIGHT | Box drawing | No |
| U+002F | SOLIDUS | Forward slash, the opposite direction | No |
The normalization column matters in practice. Software that applies NFKC normalization, which some search systems and identifier checks do, will turn the fullwidth and small forms into an ordinary backslash, while the mathematical and box-drawing characters stay distinct. Whether a particular destination normalizes text depends on that software and was not tested for this review.
When a backslash displays as a yen or won sign
In Japanese legacy encodings such as Shift_JIS, the byte 5C has historically been shown as a yen sign, and some Japanese fonts draw a yen sign for U+005C. Some Korean fonts similarly draw a won sign. In those environments a Windows path can appear as C:¥Users even though the stored character is still the backslash and the path works normally. This is a presentation effect, not a character change. If text has actually been converted to U+00A5 YEN SIGN, it is no longer a backslash, and inspecting the code point will show the difference.
How to inspect the code point yourself
Most programming languages can report the code point of a character. In source code the backslash is itself an escape character, so a single literal backslash inside a string is written as two backslashes.
>>> ord("\\")
92
>>> hex(ord("\\"))
'0x5c'
"\\".codePointAt(0); // 92
"\\".codePointAt(0).toString(16); // "5c"
To check suspicious text, paste it into a string and print the code point and Unicode name of each character. In Python, the standard unicodedata module provides the names:
import unicodedata
for ch in "\\\uFF3C\uFE68\u29F5\u2216":
print(f"U+{ord(ch):04X} {unicodedata.name(ch)}")
If you prefer a web-based tool, useful search terms include "Unicode character inspector", "code point lookup" and "U+005C". No specific online tool was verified for this review, so check that any tool you choose shows the hexadecimal code point and character name rather than only a rendered glyph.
What common transformations do to a backslash
Character reversal changes the order of characters, not their identity. Reversing C:\dir produces rid:C, and the backslash is still U+005C. The sample contains no combining marks or multi-code-point emoji, so simple per-code-point reversal gives the same result as grapheme-aware reversal here. Reversal does destroy meaning that depends on order: an escape sequence such as \n becomes n, which no longer represents a newline.
Visual mirroring, such as a CSS horizontal flip, makes a backslash look like a forward slash on screen. The stored character is unchanged, so copying the text yields a backslash. Mirror-text generators that work by substituting characters may instead replace the backslash with a forward slash or another character; that is a real change to the stored text. How any particular generator behaves was not tested, so inspect its output before relying on it.
Fancy-font generators that restyle letters typically draw on Unicode's Mathematical Alphanumeric Symbols, which contain styled letters and digits but no styled backslash. Such a generator can either leave the backslash unchanged or swap in a look-alike from the table above. Only an inspection of the output shows which happened.
In right-to-left text, the backslash is a neutral character under the Unicode Bidirectional Algorithm. Its displayed position can shift relative to surrounding Arabic or Hebrew text while its position in storage stays the same. Unlike parentheses and brackets, it is not swapped for a mirrored glyph in right-to-left runs, so it does not turn into a forward slash. Mixed-direction paths and commands can therefore look scrambled on screen while remaining correct underneath.
Copying, sharing and accessibility
- Copy and paste normally preserves the exact code point, so a look-alike stays a look-alike unless the destination normalizes text.
- Exact-match search treats look-alikes as different characters: a search for a path containing U+005C will not find a copy that uses U+FF3C unless the search system normalizes.
- Markdown, including the variants many chat and documentation tools use, treats a backslash before ASCII punctuation as an escape. A single backslash can disappear from the rendered output; doubling it or placing it in a code span preserves it.
- Screen readers commonly announce U+005C as "backslash", but look-alikes may be read by their Unicode name, by a different word, or skipped, depending on the screen reader and its verbosity settings. No assistive technology was tested for this review, so check with the tools your audience uses.
- If a decorative look-alike is used for display, provide the plain ASCII version wherever readers need to copy, run or search the text.
What this review could not verify
No source material specific to this topic was supplied, so the review relies on documented properties of ASCII and Unicode. It does not report tests of specific online inspectors, mirror or font generators, messaging platforms, search engines or screen readers. Claims about how those destinations handle a backslash or its look-alikes should be confirmed in the environment where the text will be used.