Identify the section sign and its character code
The section sign (§) has no 7-bit ASCII code. Find its Unicode code point U+00A7, decimal 167, HTML entities and escapes, and when the symbol or plain text works better.
If you are looking for the ASCII code of the section symbol (§), there isn't one. The character has a single, well-defined identity in Unicode, and the number most people are after is 167. This guide explains what that number refers to, lists the equivalent codes for different contexts, and covers when the symbol holds up after copying and sharing and when a plain-text alternative is safer.
Short answer: § is outside ASCII
ASCII defines 128 characters, numbered 0 to 127, and the section sign is not one of them. The value usually quoted as its "ASCII code" is 167 (hexadecimal A7). That is its position in the 8-bit ISO-8859-1 (Latin-1) and Windows-1252 encodings. Unicode kept the same number, so the character's code point is U+00A7 and its official Unicode name is SECTION SIGN.
| Representation | Value |
| Unicode code point | U+00A7 |
| Unicode character name | SECTION SIGN |
| Decimal value | 167 |
| Hexadecimal value | A7 |
| UTF-8 bytes | C2 A7 |
| UTF-16 code unit | 00A7 |
| ISO-8859-1 / Windows-1252 byte | A7 |
| HTML named entity | § |
| HTML numeric references | § or § |
| CSS escape | \00A7 |
| JavaScript / JSON escape | \u00A7 |
| Python string escape | \u00a7 or \xa7 |
What these codes actually change
Every entry in the table is a different way of writing the same stored character. An HTML entity, a numeric reference, and a language escape all resolve to code point U+00A7 once the browser or interpreter reads them. None of them is a visual effect. Font styling, mirrored glyphs, and look-alike substitution work differently: those swap in other characters or change only how text is drawn. The section sign is also a single code point with no combining marks, so it stays intact if surrounding text is reversed character by character.
Problems with this character come from encoding, not from the character itself. In UTF-8, § is stored as two bytes, C2 A7. If software decodes those bytes as Windows-1252 or Latin-1, the C2 byte displays as "Â" and the text shows "§" instead of "§". When you see that pattern, the content was saved as UTF-8 and read with the wrong encoding. Declaring UTF-8 consistently usually fixes it. Using an HTML entity also avoids it, because the entity is written in plain ASCII.
HTML: <p>§ 12</p> <p>§ 12</p> <p>§ 12</p>
CSS: content: "\00A7";
JavaScript: const s = "\u00A7";
Python: s = "\u00a7"
UTF-8 bytes: C2 A7
Misread as Windows-1252: §
How to type the section sign
- Windows: hold Alt and type 0167 on the numeric keypad with Num Lock on. This uses the Windows-1252 value.
- Windows legacy method: Alt+21 on the numeric keypad produces § in many programs because § sits at position 21 in the old OEM code page 437. Some applications do not support it.
- Microsoft Word: type 00A7 and then press Alt+X to convert the code into the character.
- macOS with the US keyboard layout: Option+6.
- Linux desktops using GTK or IBus input: press Ctrl+Shift+U, type a7, then press Enter or Space.
- Any system: open the built-in character picker (Character Map on Windows, Character Viewer on macOS) and search for "section sign".
- Phones: the symbol is usually on a secondary symbols page or behind a long-press on another key. The location varies by keyboard app, so searching the symbol picker for "section" is often the fastest route.
These shortcuts are the documented defaults for common US setups. They were not tested for this guide, and other keyboard layouts or input methods may assign different keys.
Telling § apart from look-alikes
- § SECTION SIGN, U+00A7: looks like two S shapes stacked and interlocked. Used for legal and document section references.
- ¶ PILCROW SIGN, U+00B6: the paragraph mark, shaped like a reversed P with a doubled stem. It is often confused with § because both appear in legal and editorial text.
- ß LATIN SMALL LETTER SHARP S, U+00DF: a German letter. It is not a symbol, even though some fonts draw it with an S-like curve.
- "SS" or "ss": ordinary letters, sometimes typed as a stand-in when § is unavailable.
- Useful search terms for finding the character or its codes: "section sign", "U+00A7", "§", "alt code 0167".
Will it stay readable after copying or sharing?
Because § is in both Latin-1 and Unicode, most general-purpose fonts include it, and copying it between applications that use UTF-8 normally keeps it intact. The weak points are systems limited to 7-bit ASCII and encoding mismatches. ASCII-only fields, older data pipelines, and some legacy import tools may reject the character, replace it with a question mark, or produce the "§" garbling described above. If the destination's encoding is unknown, test a sample before relying on the symbol.
Screen readers commonly have a spoken name for § such as "section". Whether it is announced, and how, depends on the screen reader, its language, and its punctuation verbosity setting. No specific assistive technology was tested for this guide. Where listeners must not miss a reference, such as in instructions or legal notices, write "Section 12" at least on first mention. The plural form "§§" is especially likely to be read in a confusing way.
Search and editing deserve a check too. Many search tools treat symbols as punctuation and ignore them, so a query for "§ 230" may behave like a search for "230". Behavior differs between search engines and site search systems and was not verified here. Including the word "section" nearby improves findability. Typographic practice often puts a non-breaking space (U+00A0) between § and the number so they stay on the same line. That space is a different character from an ordinary space, so exact-match searches, find-and-replace, and data validation may treat "§ 12" with a non-breaking space differently from the same text typed with a regular space.
When to use the symbol and when plain text is better
For most modern documents, web pages, and messages, the literal § character is the right choice. It is compact, widely recognized in legal and technical writing, and stored as one standard code point rather than a styled imitation. The main tradeoff is dependence on correct encoding and on readers or tools that interpret the symbol. Plain text such as "Section" or "Sec." is preferable when the destination may be ASCII-only, when speech output or search matching matters more than brevity, or when the audience may not know the symbol.
- Use the literal § in UTF-8 documents, web pages that declare UTF-8, and legal or academic citations where readers expect it.
- Use § or § in HTML when you cannot control the file's encoding or want the source to stay pure ASCII.
- Use a language escape such as \u00A7 in source code, JSON, or configuration files that must remain ASCII-safe.
- Use "Section" or "Sec." in plain-ASCII systems, in text meant to be read aloud, and where people need to search for the reference by keyword.
What this guide does not establish
The code values above are standard Unicode and encoding facts. The keyboard shortcuts reflect documented defaults rather than tests on specific devices. Claims about screen reader announcements, search engine handling, and individual applications are general tendencies. They have not been verified for any named product, so check the specific destination if accuracy there matters.