snake_case Converter

Convert text to snake_case (lower case words joined by underscores), as used for Python variables, database columns and file names. Paste many lines to convert them all.

About snake_case

Python's PEP 8 style guide uses snake_case for variables and functions, and most SQL databases use it for column names, such as created_at and total_amount.

Need a different style? Every other case conversion is one tap away above: UPPER, lower, Sentence, Title, camelCase, snake_case and more. Your text never leaves your device.

Text cases explained

CaseExampleUsed for
Sentence caseThe quick brown fox. It jumps.Normal writing, messages, descriptions
lower casethe quick brown foxEmail addresses, tags, casual text
UPPER CASETHE QUICK BROWN FOXHeadings, warnings, acronyms
Title CaseThe Quick Brown Fox in the BoxHeadlines, book and article titles (short words stay lower case)
Capitalized CaseThe Quick Brown Fox In The BoxNames, labels, form fields
camelCasetheQuickBrownFoxJavaScript and Java variables
PascalCaseTheQuickBrownFoxClass and component names
snake_casethe_quick_brown_foxPython variables, database columns
CONSTANT_CASETHE_QUICK_BROWN_FOXConstants and environment variables
kebab-casethe-quick-brown-foxURLs, CSS classes, file names
aLtErNaTiNg cAsEtHe qUiCk bRoWn fOxMemes and jokes

Your text never leaves your device. All conversions happen in your browser, and nothing is uploaded or stored on a server.

Frequently asked questions

How do I convert text to snake_case?

Type or paste your text in the box. Press the highlighted snake_case button, then use Copy text or Download.