_

Underscore

ASCII Code: 95Category: symbols

The underscore (_) serves as a connecting character in programming, file naming, and data organization where spaces are prohibited or problematic.

Technical Details

ASCII Code
95
HTML Entity
_
Hexadecimal
0x5F
Binary
01011111
Octal
137

Usage & Examples

Programming

char symbol = '_'; // ASCII 95

HTML/Web

_ or _

Common Uses

underscoreunderlineprogrammingvariablesnake_caseseparatorfilename

How to Type This Character

Windows

Alt Code:
Hold Alt and type95 on numeric keypad
Character Map:
Search "Character Map" in Start menu

Mac

Character Viewer:
Press Ctrl +Cmd +Space
Copy & Paste:
Easiest method - copy from this page!

💡 Pro tip: The fastest way is to bookmark this page or copy the character from our ASCII library!

About the Underscore

Programming Conventions

Fundamental to snake_case naming in Python, variable names in multiple languages, and database field naming. The underscore enables readable code organization while maintaining syntactic validity across programming systems.

File System Compatibility

Essential for file and folder names across operating systems that restrict spaces or special characters. The underscore provides readable separation in filenames, URLs, and system identifiers.

Database Design

Standard practice for database table and column names, ensuring compatibility across database systems and preventing syntax errors in SQL queries and data operations.

Legacy Computing

Originated from typewriter limitations where underlining required multiple character positions, evolving into a distinct character essential for modern computing and text processing.

History of the Underscore

1870s

Typewriter Development

Early typewriters used multiple backspace and underscore character combinations to create underlining effects, establishing the underscore as a distinct typographic element.

1963

ASCII Standardization

The underscore received ASCII code 95, cementing its position in computer character sets and enabling its use in early programming languages and system naming.

1970s

Programming Languages

Languages like C and FORTRAN adopted underscores for variable naming, creating programming conventions that continue in modern software development.

1980s

Database Standards

SQL databases standardized underscore usage for table and column names, establishing data organization conventions used across enterprise systems.

1990s

Web Development

HTML, CSS, and web technologies adopted underscores for class names, IDs, and file organization, making them essential for web development and digital content management.

Cultural Impact

The underscore evolved from typewriter mechanics to become essential for digital organization, enabling readable code and file management in systems where spaces are problematic.

Usage Examples

Programming Variables

Example
user_name, total_price, is_valid, get_user_data()

Snake_case naming convention in Python and other languages

File Naming

Example
meeting_notes_2024.txt, backup_database_v2.sql

Cross-platform compatible file organization

Database Design

Example
CREATE TABLE user_profiles (user_id, first_name, last_login)

SQL table and column naming conventions

Web Development

Example
CSS: .nav_menu, .footer_links | HTML: id='main_content'

Web element identification and styling

Loading privacy settings...