Number sign
The number sign ( # ), also known as the hash symbol, pound sign, or octothorpe, is a typographical punctuation mark consisting of two horizontal lines crossed by two vertical lines, used across diverse domains to abbreviate "number," indicate weights, and serve specialized functions in writing, technology, and communication.[1] Its etymology and early history are tied to commercial and printing practices, likely evolving in the 19th century from a ligature form of the Latin abbreviation libra pondo (lb), denoting a pound by weight (avoirdupois), with a documented use for "pound" as early as 1903 in shorthand texts and cited in the Oxford English Dictionary from 1923.[2] The term "octothorpe" was coined in the 1960s by Bell Labs engineers to describe the symbol on telephone keypads, referencing its eight points and possibly the Thorp family name, while "number sign" appears in an 1853 bookkeeping treatise for ordinal numbering.[2] By the mid-20th century, it gained prominence in U.S. printing and grocery notations for quantities, and AT&T standardized it as the "pound key" in 1963 touch-tone telephones to signal the end of digit entry.[2][1] In modern usage, the number sign most commonly precedes numerals or terms to signify "number" in informal American and Canadian English, as in #1 fan or Apt. #3B, without spaces.[1] In computing and programming, it marks line comments (e.g., in Python or C++ code), preprocessors (e.g., in C), and URL fragments, while in social media since the early 2000s, it prefixes keywords to create hashtags for topic categorization, a practice added to the Oxford English Dictionary in 2014.[1] In mathematics and number theory, it denotes the primorial—the product of the first n primes, written as pn# (e.g., 5# = 2 × 3 × 5 = 30)—and is occasionally used for set cardinality in some traditions, though vertical bars (|) are more standard.[3] Although visually similar to the musical sharp (♯), which raises a note by a semitone and derives from medieval square b forms, the number sign # is a distinct ASCII character not used in formal music notation but sometimes substituted in plain-text representations.[4] Other applications include proofreading marks for inserted spaces and ending press releases (as ###).[1]Names and Etymology
Common Names
The number sign is the formal name for the symbol # in typography and standards such as Unicode, where it is officially designated U+0023 NUMBER SIGN and used to abbreviate "number," as in #1 meaning "number one." This usage dates to its role in denoting ordinal or cardinal numbers in written English, distinguishing it from the separate numero sign (№). In British English, the symbol is commonly referred to as the "hash" or "hash mark," a term derived from "cross-hatching," the drafting technique of shading with intersecting lines that visually resembles the symbol's grid-like structure.[5] The name gained prevalence in the UK during the mid-20th century, particularly in contexts like computing and mapping, where it denoted grid-like patterns, such as in Ordnance Survey references for dividing maps into hashed coordinate squares. In American English, it is widely known as the "pound sign," a designation popularized by its placement on telephone keypads introduced by AT&T in 1963 for touch-tone dialing, where the symbol served as a non-numeric terminator key.[2] This name also reflects its historical evolution from the Latin abbreviation "lb" (libra pondo, meaning "pound by weight"), which scribes ligatured into a form resembling # to indicate pounds avoirdupois in weights and measures.[6] The term "octothorpe" originated as an internal joke among Bell Labs engineers in the early 1960s while designing the touch-tone telephone keypad; it combines "octo-" (Latin for eight, referring to the symbol's eight terminations) with "thorpe" (a nod to Olympic athlete Jim Thorpe), as documented in a 1963 internal memo proposing names for the new keys.[7] Though rarely used outside technical circles, it persists in some standards documentation.[8] Style guides like the Associated Press Stylebook recommend "number sign" for clarity in text to avoid confusion with the British pound sterling symbol (£), while permitting # as an abbreviation for "number" on subsequent references after spelling out "No." initially.[9]Historical and Regional Variations
Regional variations in North America include the colloquial term "tic-tac-toe," derived from the grid pattern of the popular children's game also known as noughts and crosses, which mirrors the symbol's crossed lines; this name emerged in the early 20th century amid widespread play of the game on paper or slates.[10] Colloquial English names include "criss-cross" and "scratch mark." In non-English languages, variations highlight geometric interpretations: German employs "Rautenzeichen" (rhombus sign), reflecting the diamond-like enclosure formed by its lines, a term documented in 19th-century typographic references for its lattice resemblance.[11] Japanese traditionally calls it "igeta" (井桁), transliterated from the kanji for a well's wooden curb frame, which features a crisscross support structure akin to the symbol; this name, predating modern "hashtag" borrowings, appears in Edo-period (1603–1868) printing glossaries.[12] The spread of the "pound" name for # in former British colonies, such as the United States and parts of the Commonwealth, stems from colonial linguistic inheritance, where the symbol abbreviated "lb" (from Latin libra pondo, a unit of weight equivalent to a pound); this usage persisted post-independence through trade and telegraphy standards influenced by British practices.[13]History
Early Origins
The number sign (#) evolved in the 19th century from a ligature form of the abbreviation for the Latin libra pondo (lb), denoting a pound by weight.[14] The term "number sign" first appears in an 1853 bookkeeping treatise for ordinal numbering.[2] Its use for "pound" is documented as early as 1903 in shorthand texts, with the Oxford English Dictionary citing it from 1923.[2] The symbol's adoption accelerated with the rise of printing in the 19th century, where it was included in type foundries' specimen books for use in numbering and measurements in books and commercial texts.[14]Development in Printing and Telegraphy
In the 19th century, the number sign underwent standardization in printing as metal type production expanded for newspapers, books, and commercial printing. This reflected the growing need for reliable symbols in industrial typesetting, where the number sign served as an abbreviation for "number" in lists, tables, and annotations.[14] The symbol's role in communication grew in the 20th century with the introduction of typewriters in business correspondence. By the early 20th century, it was featured on standard keyboard layouts, positioned above the 3 key, enabling its use in documents like invoices and ledgers. During the linotype era beginning in the late 1880s, the number sign became available as a fixed character in newspaper composition. Invented by Ottmar Mergenthaler and first used by the New York Tribune in 1886, the linotype machine cast entire lines of type from brass matrices, supporting efficient production of tabular content.[15] This mechanical advancement embedded the symbol in the visual language of journalism. The Bell System's telephony innovations contributed to the number sign's modern role. The 1963 introduction of Touch-Tone dialing by Bell Labs placed the # on the bottom-right key of the 4x3 grid for signaling non-digit functions in automated switching systems.[16]Symbol Characteristics
Visual Design
The number sign, denoted as #, consists of two horizontal lines crossed by two vertical lines at right angles, forming a symmetrical grid that produces eight distinct endpoints. This structural characteristic inspired the term "octothorpe," coined in the 1960s by Bell Labs engineers to describe the symbol's eight terminations, distinguishing it from other potential names like "hash" or "pound."[17][18] In typographic practice, the symbol's visual form exhibits variations in stroke weight, spacing, and overall proportions depending on the font family. Serif typefaces, such as those modeled after traditional book printing, often feature horizontal strokes with subtle thickness modulation and terminal flourishes, while sans-serif designs maintain uniform stroke weights for a cleaner, more geometric appearance. These differences ensure the glyph integrates harmoniously within the typeface's aesthetic, with horizontal lines typically spanning the full em-width to align with adjacent characters in digital typesetting standards.[19] The symbol's Unicode representation is U+0023, where it is defined as the basic Latin glyph for the number sign, also known as pound sign or hash. Rendering in bold variants thickens the strokes proportionally without altering the core geometry, while italic styles introduce a slight slant to the vertical lines, adapting the form to the typeface's oblique emphasis; these stylistic adjustments are font-specific and follow general typographic conventions for symbol scaling.[19] Historically, the visual design shifted from irregular medieval scribal forms—derived from ligatured abbreviations like the barred "lb" for libra pondo (pound)—to more uniform cross-hatched representations in 19th- and 20th-century printing. Early handwritten versions were often asymmetrical and fluid due to speed, but metal type and later digital fonts standardized the intersecting lines for consistency and readability across media.[13]Distinction from Similar Symbols
The number sign (#, Unicode U+0023) is visually and functionally distinct from the musical sharp symbol (♯, Unicode U+266F), despite superficial similarities in their crossed-line designs. The number sign features straight horizontal and vertical lines forming a grid-like structure, while the sharp symbol incorporates slanted, parallel vertical lines and curved or angled horizontals to evoke a tonal alteration in music notation; typography standards prefer the dedicated sharp glyph for musical contexts to avoid ambiguity.[20][21] Although the number sign shares a motif of intersecting lines with symbols like the obelus (÷, used for mathematical division) and the dagger (†, a reference mark for footnotes), these differ in form and purpose. The obelus typically includes a horizontal bar with dots above and below, emphasizing separation for quotients, whereas the dagger consists of a vertical stem crossed by a single horizontal line, often superscripted to denote editorial notes or deceased individuals; none serve as numeric indicators.[22] In modern digital contexts, the number sign functions identically to the hashtag on social media platforms, where it prefixes terms for categorization (e.g., #topic), representing an evolution from its traditional numbering role without altering the glyph itself. This usage emerged in the early 2000s on sites like Twitter, transforming the symbol into a metadata tool while retaining its core form for non-digital numbering.[14] The number sign bears no relation to the pound sterling symbol (£), which derives from the Latin "libra" for scales and features a stylized L with a crossbar; naming confusion arises regionally, as "#" is termed "pound sign" in North America for weight or telephony, prompting "number sign" in the UK to distinguish from the currency mark.[23] Visually, the number sign resembles a doubled or crossed form of the Chinese radical 八 (bā, meaning "eight" and evoking division), where two instances of the V-shaped character intersect, though this is coincidental and not etymologically linked; similarly, certain historical variants of Arabic numerals, such as early forms of 4 or 8, exhibit hash-like crossings, but the number sign's grid design stems from Western printing traditions rather than these scripts.[24] Style manuals like The Chicago Manual of Style advise against the number sign in formal writing, recommending "No." (with period) for abbreviations (e.g., No. 45) or spelled-out "number" to ensure clarity; for numeric ranges, an en dash (–) is preferred over "#" (e.g., pages 45–50) to indicate spans without implying enumeration.[25][26]Traditional Uses
Numbering and Abbreviations
The number sign (#) serves primarily as a prefix to denote numbers in everyday contexts, such as addresses and lists, where it indicates a specific identifier like "#42" for room 42 or item 42. This usage was described as the "number" character in an 1853 treatise on bookkeeping and became standardized in 19th-century American catalogs and directories to streamline referencing and organization.[2] Historically, # also denoted "pound" by weight, as in "5# bag," originating from the ligature for Latin libra pondo, a use prevalent in American English until the mid-20th century.[1] In legal and technical documents, the number sign abbreviates "number" to identify cases, documents, or references, as in "#12345" for a case number. This application ensures concise notation in formal records while maintaining clarity.[27] The symbol finds widespread use in sports scoring to denote rankings or positions, such as "#1 seed" for the highest-ranked team in a tournament bracket, a convention adopted by major leagues like the NCAA to highlight seeding hierarchies.[28] Similarly, in inventory management, it prefixes part identifiers, for example "part #ABC-123," enabling efficient tracking and cataloging in manufacturing and logistics systems.[29] From its roots in 19th-century printing practices, the number sign transitioned to widespread use, but modern style guides like New Hart's Rules recommend avoiding it in formal prose, favoring spelled-out "number" or the abbreviation "No." to enhance readability and professionalism. In practical applications, such as signage and forms, it appears prominently in U.S. postal addresses for secondary units, like "123 Main St #4" for apartment 4, though the USPS advises using specific designators like "APT" when possible for automated processing.[30]Music Notation
In textual and informal music representations, such as chord names and lead sheets, the number sign (#) denotes a sharp, raising the pitch of the note it follows by one semitone. For example, the notation C# represents C-sharp, the pitch immediately above C on the diatonic scale, typically played on the black key to the right of C on a piano. In formal music notation, however, the dedicated ♯ symbol is used as an accidental. This application differs from key signatures, where sharps are grouped at the start of a staff to apply consistently to all instances of a given note letter within the piece, unless overridden by another accidental.[31] The adoption of the sharp in music notation traces back to 17th-century tablature systems, where it became standardized for indicating pitch alterations in instrumental music like lute and keyboard works, building on earlier practices. This evolved from ancient Greek theoretical marks, including the "diesis," a symbol and term denoting a small interval—originally a quarter tone but later adapted for the semitone in Western music. The term "sharp" itself derives from the French dièse, rooted in the Greek diesis meaning "higher in pitch" or "half-tone above." While the dedicated sharp symbol ♯ emerged from medieval square forms of the letter b (used to distinguish B natural from B flat), the number sign #—a distinct typographical character originating in 19th-century printing—serves as its textual proxy in modern informal or digital representations.[32][4][33] Per guidelines from the Associated Board of the Royal Schools of Music (ABRSM), the sharp is positioned directly before the affected note, aligned vertically on the same line or space as the notehead, without a space between them. For a double sharp, which raises the pitch by two semitones (a whole tone), the notation uses two adjacent sharps (##) or the dedicated double-sharp symbol (𝄪); this applies to notes like C##, equivalent to D. A sharp accidental persists through the bar in which it appears and applies to all subsequent notes of the same pitch in that bar, unless canceled by a natural sign (♮), which restores the unaltered diatonic pitch. These conventions promote unambiguous interpretation in performance and composition.[34] Composers have employed sharps to dramatic effect in orchestral works, as seen in Ludwig van Beethoven's Symphony No. 3 in E-flat major ("Eroica"), Op. 55, where a C-sharp in the cellos during the first movement's development section introduces a jarring dissonance against the prevailing harmony, amplifying emotional intensity and structural surprise. In contemporary music software and MIDI sequencing, sharps are encoded numerically rather than symbolically; for instance, C-sharp in the fourth octave (C#4) corresponds to MIDI note number 61, enabling precise playback and rendering of the elevated pitch in digital scores.[35][36] Stylistic preferences vary by genre and medium: classical scores favor the precise ♯ symbol for engraved notation, ensuring visual distinction from other marks, while jazz charts and lead sheets commonly substitute the number sign # for efficiency in handwritten, typed, or quick-copy formats.[37]Modern and Technical Uses
Computing and Programming
In computing, the number sign (#) was included in the original American Standard Code for Information Interchange (ASCII) as character code 35 (decimal), defined in the 1963 standard published by the American Standards Association. This 7-bit encoding assigned the symbol to binary 00100011, positioning it among printable punctuation characters for use in data interchange and early digital systems.[38] The inclusion ensured compatibility across teletypewriters, computers, and communication protocols, facilitating its adoption in subsequent software environments. The number sign serves as a delimiter for single-line comments in various scripting and programming languages, a convention tracing back to early Unix shells developed in the 1970s at Bell Labs. In the Bourne shell, introduced in 1977 with Unix Version 7, lines beginning with # are ignored by the interpreter, allowing developers to annotate code without affecting execution; this feature was formalized in later revisions like System III (1981). Modern shells such as Bash inherit this syntax, where # must appear at the start of a line or after executable code, with the remainder treated as commentary until the end of the line. Python, released in 1991, adopted the same mechanism for comments, as specified in its language reference: any text following # on a line is disregarded during interpretation, promoting readable code documentation. In web markup and styling languages, the number sign prefixes identifiers for element targeting. In HTML, the id attribute assigns unique labels to elements (e.g.,), and # precedes these ids in URI fragments for internal linking (e.g., href="#main"), enabling navigation within documents as defined in the HTML Living Standard. Similarly, in CSS, # initiates ID selectors to apply styles specifically to elements with matching ids (e.g., #main { color: blue; }), a syntax introduced in the 1996 CSS Level 1 specification for precise document styling.
Telecommunications and Hashtags
In telecommunications, the number sign serves as a key component in telephone keypads, integrated into the Dual-Tone Multi-Frequency (DTMF) signaling system developed by the Bell System during the 1960s.[39] This system, commercially introduced in 1963 under the Touch-Tone trademark, assigned the # symbol to a dedicated button that generates a unique audio tone (941 Hz and 1477 Hz) for signaling purposes beyond numeric dialing.[40] On modern keypads, the # key facilitates menu navigation in automated systems, such as pressing it to select options or access extensions, and appears in international dialing sequences to signal pauses or operator assistance, as in formats like +1-XXX-XXXX followed by # for further routing.[41] Within Interactive Voice Response (IVR) systems and early mobile technologies, the number sign functions as an end-of-input marker, confirming user entries like PINs or selections during voice-guided interactions.[42] This convention emerged in the 1980s alongside the expansion of DTMF-compatible hardware, enabling efficient handling of caller inputs in automated telephony before widespread SMS adoption in the 1990s.[43] In SMS and precursor paging systems from the late 1980s and early 1990s, # occasionally delimited numeric messages or commands, though alphanumeric texting later reduced its prominence.[44] In internet protocols, the number sign identifies URI fragment components, marking the start of an intra-document reference as specified in RFC 3986.[45] For instance, a URL such as example.com/document#summary directs to the "summary" anchor within the resource, supporting web navigation without server requests for the fragment.[45] The hashtag, employing the number sign as a prefix (e.g., #topic), originated from a 2007 proposal by product designer Chris Messina for Twitter to enable topic-based grouping of posts.[46] In his August 23, 2007 tweet, Messina advocated using # to create "groups" for events and trends, a mechanic that clusters related content for discoverability across social platforms.[47] By 2025, hashtags permeate major networks like Instagram, where over two billion posts feature popular tags such as #love, contributing to billions of annual uses.[48] Hashtags have profoundly influenced cultural and social movements, exemplified by #MeToo, founded in 2006 by activist Tarana Burke to empower survivors of sexual violence. The movement went viral in 2017 with actress Alyssa Milano's tweet encouraging shares, generating over 12 million responses in the first 24 hours and amplifying survivor voices against sexual harassment, which prompted accountability for hundreds of high-profile perpetrators worldwide.[49][50] This activism fostered global policy changes and awareness.Encoding and Input
Unicode Representation
The number sign is encoded in the Unicode Standard as U+0023 NUMBER SIGN, positioned within the Basic Latin block (U+0000 to U+007F), which encompasses the core ASCII repertoire. This code point corresponds to decimal value 35 and hexadecimal value 23, with a UTF-8 encoding consisting of the single byte 0x23. As a member of the Other Punctuation (Po) category, it serves as a versatile symbol without inherent directional properties.[19] This encoding maintains full compatibility with earlier standards, including the American Standard Code for Information Interchange (ASCII), where it occupies position 35 (hex 23), as defined in the initial ASA X3.4-1963 specification developed by the American Standards Association committee in 1963. Similarly, it appears at the identical position in ISO/IEC 8859-1 (Latin-1), an 8-bit extension of ASCII for Western European languages, ensuring seamless interchange in legacy systems supporting these encodings. The number sign lacks official decomposed or compatibility variants in Unicode, though certain fonts may apply discretionary ligatures for stylistic rendering in specific typographic contexts, such as combining with adjacent characters. In bidirectional text processing, it is classified as Other Neutral (ON) under the Unicode Bidirectional Algorithm, meaning its visual orientation in right-to-left (RTL) languages like Arabic or Hebrew is determined by surrounding directional characters rather than initiating its own run.[51][52] Standards organizations such as the Internet Engineering Task Force (IETF) and World Wide Web Consortium (W3C) outline guidelines for consistent web rendering of Unicode characters like the number sign, particularly through CSS properties such asunicode-bidi for handling bidirectional layouts and fragment identifiers in URIs (where # denotes anchors). The keycap number sign emoji #️⃣ (composed as U+0023 followed by U+FE0F VARIATION SELECTOR-16 and U+20E3 ENCLOSING KEYCAP) uses components from Unicode 3.0 (1999) and was added to the emoji standard in Emoji 1.0 (2015) to represent telephone keypads or hashtags in digital interfaces.[53] In legacy systems, encoding mismatches—such as interpreting ASCII bytes in multi-byte schemes like Shift-JIS—can lead to mojibake, where the number sign's byte 0x23 appears as unintended glyphs, though its ASCII status minimizes such issues compared to non-Latin characters. Unicode 15.0 (2022) reinforces encoding stability for basic Latin characters, including improved conformance testing and data files that enhance support for consistent rendering across platforms without altering U+0023 itself.[54][55]