Skip to the content

snake_case Converter

Lowercase words joined by underscores.

Writing

Code

For fun

Share this tool:TwitterFacebookLinkedInWhatsAppEmail

Example

Before
firstName lastName dateOfBirth
After
first_name last_name date_of_birth

Good to know

  • The usual style for variables and functions in Python and Ruby, and for column names in databases.
  • camelCase names are split at their capitals: dateOfBirth becomes date_of_birth, and parseHTMLString becomes parse_html_string.
  • Each line is converted separately, so a list of names stays a list.

All 15 cases are compared side by side on the case converter page.

See all 9