Forgly

camelCase to snake_case Converter

Convert camelCase identifiers to snake_case.

Try an example:

Converting camelCase to snake_case

camelCase (first word lowercase, later words capitalized) is common in JavaScript; snake_case (lowercase words joined by underscores) is common in Python and SQL. This converts between them.

How to convert camelCase to snake_case by hand

  1. Split the string at each lowercase-to-uppercase boundary.
  2. Lowercase every word.
  3. Join the words with underscores.

Worked example

camelCaseTextcamel_case_text

More converters

Frequently asked questions

How do I convert camelCase to snake_case?

Split the string at each lowercase-to-uppercase boundary. Lowercase every word. Join the words with underscores. Or just use the converter on this page — it does it instantly. Example: camelCaseText becomes camel_case_text.

What is camelCaseText in snake_case?

camelCaseText converts to camel_case_text.

Is this converter free and private?

Yes — it is free and unlimited, and the conversion runs entirely in your browser, so nothing is uploaded to a server.