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
- Split the string at each lowercase-to-uppercase boundary.
- Lowercase every word.
- Join the words with underscores.
Worked example
camelCaseText → camel_case_text
More converters
- snake_case to camelCase
- camelCase to kebab-case
- kebab-case to camelCase
- snake_case to kebab-case
- Decimal to Binary
- Binary to Decimal
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.