snake_case Converter
Paste words or identifiers, one per line, to get lowercase words joined by underscores, the convention in Python, Ruby and SQL.
Runs entirely in your browser. Your text is not uploaded.
0words
0characters
0lines
0words
0characters
0lines
How to use the snake_case converter
- Paste your text.
- The result appears below already converted.
- Copy it, or pick another case from the buttons.
Questions
What is snake_case used for?
Python (PEP 8) uses it for functions and variables, Ruby for methods, and many SQL schemas for table and column names.
What is SCREAMING_SNAKE_CASE?
Upper-case snake case, also called CONSTANT_CASE, used for constants and environment variables such as MAX_RETRIES.
snake_case or kebab-case?
Use snake_case where hyphens are not allowed in names (most programming languages) and kebab-case in URLs, CSS classes and file names.