Advertisement

Snake case converter

Convert any text to snake_case, the lowercase naming style with underscores used in Python, Ruby, databases, and file names.

Snake Case

Paste text below and get snake_case output instantly.

Advertisement

How snake_case works

snake_case writes everything in lowercase and joins words with underscores: Hello World Example becomes hello_world_example. It is the standard for Python variables and functions, Ruby methods, and database column names.

Handles any input format

Existing camelCase, PascalCase, kebab-case, and spaced input are all split into words first. Acronyms are handled so myHTMLParser becomes my_html_parser, which matches what most formatters expect.

Snake Case FAQs

What is snake_case used for?
Python and Ruby use snake_case for variables and functions (user_account), databases use it for columns and tables, and it is common in file names (quarterly_report.pdf) and URL slugs in some systems.
How do I convert camelCase to snake_case?
Paste the camelCase text in. The tool detects the boundary between the lowercase and uppercase letters, so userAccountStatus becomes user_account_status automatically.
Does it lowercase everything?
Yes. snake_case is all lowercase by definition, so HELLO WORLD becomes hello_world. If you need uppercase with underscores, use the Constant Case converter instead.
Can I use it for file names?
Yes. snake_case file names avoid the space-encoding problems of URLs and work on every operating system, which is why many teams standardize on them.
Is my text sent to a server?
No. The conversion runs entirely in your browser with JavaScript. Nothing you paste ever leaves your device.
Advertisement