Convert4Me – Convert4Me home
Share

snake_case Converter

Turn phrases into snake_case names such as user_first_name. Each line is converted separately.

Characters: 0Words: 0Lines: 0

Case types with examples

Starting text: The Lord of the Rings

  • snake_case

    Words are lowercase and joined with underscores.

    the_lord_of_the_rings

  • camelCase

    Words are joined with no spaces; every word after the first starts with a capital.

    theLordOfTheRings

  • PascalCase

    Words are joined with no spaces and every word starts with a capital.

    TheLordOfTheRings

  • kebab-case

    Words are lowercase and joined with hyphens.

    the-lord-of-the-rings

  • CONSTANT_CASE

    Words are capitals joined with underscores.

    THE_LORD_OF_THE_RINGS

When to use snake_case

snake_case writes words in lowercase with underscores between them. Python's style guide recommends it for variables and functions, and many databases use it for table and column names because it avoids spaces and capital letters.

Convert a whole list at once

Paste one name per line. The tool converts each line separately, which is handy when renaming a list of spreadsheet headings into database column names.

How to use the snake_case tool

  1. Paste one name or phrase per line into the box.
  2. Click snake_case (or camelCase or kebab-case).
  3. Click the copy icon above the text to use the result.

Frequently asked questions

What is snake_case used for?

snake_case is common for Python variables, database column names and file names. Words are lowercase and joined with underscores.

Can I convert camelCase to snake_case?

Yes. Paste the camelCase text and click snake_case. A break is added before each capital letter.

Your privacy comes first. Your text and numbers stay in your browser and we never see them. If you allow it, we save what you type on this device and use Google Analytics to count visits. We never sell your data. Privacy Policy