snake_case Converter
This tool converts words and phrases to snake_case, with words joined by underscores in lower case. You can switch to upper case for constants and process a list line by line.
- Free, no sign-up
- Nothing is sent to a server
- Worldwide
How to use snake_case Converter online
- Paste the names. Type phrases or paste a list.
- Choose the case. Lower, or upper for constants.
- Read the result. The converted names appear at once.
- Copy it. Copy or save the list.
Why use this free snake_case Converter
- snake_case and SNAKE_CASE
- One name per line
- Splits camelCase
- Removes symbols
- Keeps digits
- Share by link
Where underscores are used
Python code, Ruby code, database column names and many configuration keys are written in snake_case, as in user_account_id. The upper case form, SNAKE_CASE, is the usual way to write constants and environment settings. Underscores are safe in nearly every system, which is why these styles are so common.
Splitting the input
Any run of letters and digits counts as a word, so spaces, dashes and dots turn into underscores. A name that is already in camel case is cut at each change from lower to upper case, so maxRetryCount gives max_retry_count. A run of capitals like ID is kept together as one word.
A worked example
The lines "User Account ID" and "maxRetryCount" become "user_account_id" and "max_retry_count". Tick the upper case option and they turn into USER_ACCOUNT_ID and MAX_RETRY_COUNT.
Columns and lists
Paste a column of headings from a spreadsheet and you get a column of database-safe names back, one for each line. Switch the one-name-per-line option off if you want the whole text turned into a single long name instead, though that is rarely useful.
Before you rename
Acronyms are read in different ways: HTMLParser becomes html_parser, which some teams dislike. A name that begins with a digit is not valid in many languages. The tool only changes the writing style. It cannot tell whether a name is already taken in your project.
Using the tool
There is no button to wait for: the snake_case Converter result follows every change. Find and replace is built into the editor with Ctrl+F and Ctrl+H.
snake_case Converter: frequently asked questions
What is snake_case?
What is SNAKE_CASE for?
Does it split camelCase?
What happens to symbols?
Can I convert many names at once?
Can anyone see the text I put into the snake_case Converter?
Can I copy the snake_case Converter result?
Related searches for snake_case Converter
- snake_case Converter online
- free snake_case Converter
- snake_case Converter online free
- snake_case Converter for mobile
- snake_case Converter without sign up
- snake_case Converter – Text & Writing Tools
snake_case Converter is a free online tool on MAITBOX, in the Text & Writing Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.