snake_case converter
Turn phrases and other naming styles into snake_case: lowercase words joined by underscores, as used in Python, Ruby and database column names.
How it works
-
Paste your text
Type or paste the text in the left box, or open a .txt file. No text to hand? Click Example.
-
Instant result
The result appears as you type. Change the options and see straight away what changes.
-
Copy or download
Copy the result with one click, save it as a file or use it as input for a next step.
Examples
| Input | snake_case |
|---|---|
| customer name | customer_name |
| InvoiceDate | invoice_date |
| vatPercentage | vat_percentage |
| total-amount incl vat | total_amount_incl_vat |
Words are found at spaces, hyphens, underscores and where lower case meets upper case. Accents are removed, apostrophes dropped and & becomes and. Every line is converted separately, so you can paste a whole list of names.
Other styles: camelCase, kebab-case and SCREAMINGSNAKECASE.
Frequently asked questions
Is the text to snake_case free?
Yes. The text to snake_case is completely free, with no account, sign-up or usage limit.
Is my text stored?
No. Your text is processed in your browser and is not sent to a server or stored.
Is there a maximum length?
No, there is no fixed limit. Very long texts can just be a little slower.