Case Converter Switch text between UPPER, lower, Title, camelCase and more — free, instant, private.

snake_case Converter

Turn any phrase into snake_case — free, instant, runs in your browser.

0 words, 0 characters

What is snake_case?

snake_case writes every word in lowercase and joins them with underscores. The name comes from the snake-like shape of the underscores running along the baseline of the text.

snake_case examples

Where is snake_case used?

snake_case is the convention for variables and functions in Python (recommended by PEP 8), Ruby and Rust, and it is the dominant style for SQL table and column names. It is also popular for file names and for JSON keys in APIs that value readability.

snake_case and its relatives

Replacing the underscores with hyphens gives kebab-case; uppercasing everything gives CONSTANT_CASE, also called SCREAMING_SNAKE_CASE. This converter understands all of these styles as input, so pasting camelCase or kebab-case text converts cleanly.

Common mistakes when converting case

Pro tips

Frequently asked questions

What is the difference between snake_case and kebab-case?

snake_case joins lowercase words with underscores (user_name), kebab-case with hyphens (user-name). snake_case is the norm in Python, Ruby and SQL; kebab-case dominates URLs, CSS classes and HTML attributes.

What is SCREAMING_SNAKE_CASE?

It is snake_case written in all capitals — the same style this site calls CONSTANT_CASE, used for constants and environment variables like MAX_RETRY_COUNT. See the CONSTANT_CASE converter linked below.

Does the converter understand camelCase input?

Yes. Word boundaries are detected automatically, so pasting 'userFirstName' or 'user-first-name' converts to 'user_first_name' without any manual cleanup.

Other case converters

Or switch between every style in one place on the Case Converter homepage.