snake_case Converter

Type or paste text and get snake_case as you type: all lower case, words joined with underscores, like order_total_amount. It also converts camelCase and PascalCase, so "orderTotalAmount" becomes "order_total_amount". Paste a row of spreadsheet headings, one per line, to get clean column names.

Enter your text
Result (snake_case)

Features

  • Converts to snake_case as you type

  • Example: "Order Total (INR)" becomes order_total_inr

  • Understands spaces, hyphens, underscores, dots and existing camelCase humps

  • Converts a list line by line

  • Switch to any of the other 12 cases with one click

  • Copy the result

  • Runs in your browser: your text is never uploaded. Free, no signup

Where snake_case is used

Python

PEP 8 uses snake_case for variables and functions: get_user, total_price.

Databases and SQL

Table and column names such as customer_id and created_at.

CSV and spreadsheet headers

Turn headings like "Date of Birth" into date_of_birth before an import.

snake_case rules

How text becomes snake_case

  • All letters are lower case.
  • Words are joined with an underscore _.
  • Spaces, hyphens, dots, brackets and other punctuation are removed.
  • For SCREAMING_SNAKE_CASE (all capitals) use CONSTANT_CASE on the Case Converter.

How words are split

Words are found at spaces, punctuation, and at the humps of existing camelCase or PascalCase (parseHTTPResponse becomes parse, HTTP, Response), so you can convert between any of the programming cases and back. Each line is converted on its own, so a list of names converts in one go. Letters and digits in Hindi and other scripts are kept.

Other cases and tools

snake_case Converter - FAQ