142+ Free Online Tools · Easy. Fast. Accurate.

Snake Case Converter

Convert text to snake_case, instantly in your browser.

How to use the Snake Case Converter

  1. Paste your text, for example User First Name or userFirstName.
  2. Click Run to convert it to snake_case, giving user_first_name.
  3. Copy the result into your code or schema.

How the Snake Case Converter works

The converter splits the text into words at spaces, hyphens, underscores, punctuation and case changes, so userFirstName and XMLParser are split correctly. Each word is lowercased and the words are joined with underscores.

snake_case is the standard style for Python variables and functions (PEP 8), Ruby, and many SQL column names. For constants, use the Upper Case Converter on the result to get SCREAMING_SNAKE_CASE.

Frequently asked questions

Is this tool free?
Yes. Convert text to snake_case at no cost, with no account required.
How are words detected?
Spaces, hyphens, underscores, and existing camelCase boundaries are all treated as word separators.
How do I get SCREAMING_SNAKE_CASE?
Convert your text to snake_case here, then run the result through the Upper Case Converter.
Does my text leave my browser?
No. The conversion runs entirely in your browser, so your text is never sent to a server.

More Text Tools

Browse all Text Tools →