Writing
Code
Other
Clean up
Shortcuts: Ctrl/Cmd + Enter copies the result, Ctrl/Cmd + Z undoes the last clean-up.
What snake_case is
snake_case writes everything in lowercase and joins words with underscores, for example user_first_name. It is the usual style in Python, Ruby, SQL column names and many file names.
How to use the converter
Paste a phrase or a camelCase name. With snake_case selected, the result shows the underscore version. Click Copy to use it.
snake_case vs kebab-case
kebab-case uses hyphens instead of underscores, for example user-first-name. It is common in URLs and CSS. CONSTANT_CASE is snake_case in capitals and is used for constants.
Tips
Pick one style and use it consistently. Avoid spaces and special characters in names, and keep names readable.
More converters: Uppercase to Lowercase Converter · Lowercase to Uppercase Converter · Capitalize Text Online · camelCase Converter · Title Case Converter · Sentence Case Converter · All case options
- Can it convert camelCase to snake_case?
- Yes. Paste the camelCase name and the words are split at each capital letter.
- Does it change capital letters?
- Yes. snake_case is all lowercase.