iZONE

snake_case

Words joined by underscores - lowercase by default, uppercase variant available. Supports up to 50,000 characters.

Programming Tools

Input Text

0 / 50,000

Variant

Converted Text

Result will appear here…
About

What is snake_case?

snake_case writes all words in lowercase separated by underscores. It is one of the oldest and most widely used naming conventions in programming, dominant in Python, Ruby, and database schemas. The UPPER_SNAKE_CASE variant (also called SCREAMING_SNAKE_CASE or CONSTANT_CASE) uppercases every word and is the universal convention for environment variables and compile-time constants across virtually every language and platform.

Example

Input

get user profile data

Output

get_user_profile_data

Usage

When to use snake_case?

Python variables & functions

PEP 8 - Python's official style guide - mandates snake_case for all variable names, function names, and module names: get_user_profile, parse_json_response.

Database column names

SQL databases conventionally use snake_case for table and column names: user_id, created_at, order_total, is_active.

Environment variables (UPPER_SNAKE_CASE)

All environment variables follow UPPER_SNAKE_CASE - DATABASE_URL, API_SECRET_KEY, MAX_RETRY_COUNT - across every OS and platform.

Constants & config keys

Compile-time constants and config keys in C, Go, Python, and JavaScript use UPPER_SNAKE_CASE to signal that the value never changes at runtime.