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

  1. Paste your text

    Type or paste the text in the left box, or open a .txt file. No text to hand? Click Example.

  2. Instant result

    The result appears as you type. Change the options and see straight away what changes.

  3. 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.