snake_case Converter

Lowercase words joined with underscores, like order_total or date_of_birth. Paste a list and convert it all at once.

How to convert to snake_case

  1. Paste your words or names into the top box, one per line.
  2. Each line is converted to snake_case in the result box.
  3. Copy the list and paste it into your code, SQL script or spreadsheet.

Examples

Inputsnake_case
First Namefirst_name
userAccountIduser_account_id
Total Price (incl. tax)total_price_incl_tax
shipping-methodshipping_method

Where snake_case is used

Turning spreadsheet headers into column names

Here is a common job: you have a spreadsheet with headers like "Customer Name", "Order Date" and "Amount Paid" and you need to import it into a database. Copy the header row, paste it into a text editor so each header is on its own line, then paste that here. You will get customer_name, order_date and amount_paid ready to use.

Frequently asked questions

What is snake_case?

snake_case writes every word in lower case and puts an underscore between them, like user_id or created_at. The underscores make it look like a snake lying flat on the ground.

Can I convert camelCase to snake_case?

Yes. The tool spots where a capital letter starts a new word, so userAccountId becomes user_account_id.

What happens to punctuation?

Punctuation and symbols are treated as word breaks and removed, so "price (USD)" becomes price_usd.

Is there an uppercase version?

Yes. Uppercase words with underscores are usually called CONSTANT_CASE or SCREAMING_SNAKE_CASE. Use our CONSTANT_CASE converter for that.