Writing & StyleStyle guide

Slash vs. Backslash

The slash `/` and backslash `\` are different characters with different technical uses. Unicode identifies them as SOLIDUS and REVERSE SOLIDUS, and Microsoft writing guidance distinguishes slash use in web addresses and general constructions from backslash use in server or folder paths.

Quick answer

A slash is `/`; a backslash is `\`. Use the character required by the technical syntax or writing context rather than treating them as interchangeable.

Key details

Core IssueSlash and backslash are distinct characters, not visual variants of the same punctuation mark.
Phrase Roletechnical-punctuation
Registertechnical and professional writing

Important caveats

Usage Boundary

In code, file paths, and URLs, use the exact character required by the syntax; in prose, avoid using slashes as a vague replacement for words when the relationship is unclear.

Further guidance

Backslash

The backslash `\` (Unicode REVERSE SOLIDUS) is distinct and is used in technical contexts such as certain server or folder paths.

Slash

The slash `/` (Unicode SOLIDUS) appears in URLs and in several ordinary punctuation constructions.

Sources and evidence

Sources are shown with the role they play in this guide. Historical or style-sensitive claims are kept within the evidence boundary described above.

  1. Unicode Technical Report #25 — Mathematical symbols (opens in a new tab)Unicode Consortium · Character identities U+002F SOLIDUS and U+005C REVERSE SOLIDUS
  2. Slashes — Microsoft Writing Style Guide (opens in a new tab)Microsoft Learn · Writing and technical-use distinctions for slash and backslash

Explore the topic