snake_case Converter

Convert text to snake_case — words joined with underscores, all lowercase.

0 words0 chars
0 words0 chars

What is snake_case?

snake_case writes compound words or phrases with a lowercase underscore between each word, and all letters lowercase. The name refers to the long, flat appearance — like a snake lying flat.

Inputsnake_case output
hello worldhello_world
user first nameuser_first_name
background colorbackground_color
created at timestampcreated_at_timestamp

Where snake_case is used

SCREAMING_SNAKE_CASE is the uppercase variant — used for constants in Python, C, Java, and environment variables: MAX_RETRY_COUNT, DATABASE_URL.

Frequently asked questions

Python's official style guide (PEP 8) specifies snake_case for variable names, function names, and module names. PascalCase is used for class names. camelCase is not recommended for Python.
snake_case uses underscores as separators (hello_world). kebab-case uses hyphens (hello-world). kebab-case is preferred for URLs and CSS class names; snake_case is preferred for Python and database identifiers.

Related tools