snake_case Converter

Lowercases the words on each line and joins them with underscores.

Result

The converted text appears here as you type.

For example
First Name
shippingAddressLine2
order-total
first_name
shipping_address_line2
order_total

How to use

  1. Paste or type your text in the box.
  2. Check the result. Every change is highlighted, so you can see exactly what will be different.
  3. Press Copy Result, or Open in Editor to keep working with more tools, undo and saved drafts.

Example

Before
First Name
shippingAddressLine2
order-total
After
first_name
shipping_address_line2
order_total

What it's for

  • Naming database columns from a list of field labels
  • Writing Python variable or function names

Questions

Does it remove punctuation?

Yes. Anything that isn't a letter or number is treated as a word break and removed.

Related tools