Menu
PDF Tools
Image Tools
Converters & Utilities
Seller & Print Tools
Accounting & Business
Calculators
Text & Writing Tools
Developer & Web Tools
Creator & Social Tools
Browser Utilities & Games
Document & Design Makers
Text & Developer Tools
Exam & Form Tools

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.

How to use snake_case Converter online

  1. Paste the names. Type phrases or paste a list.
  2. Choose the case. Lower, or upper for constants.
  3. Read the result. The converted names appear at once.
  4. 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?
Lower case words joined by underscores.
What is SNAKE_CASE for?
Constants and settings in many languages.
Does it split camelCase?
Yes, at each change from lower to upper case.
What happens to symbols?
They are treated as word breaks and removed.
Can I convert many names at once?
Yes, one per line.
Can anyone see the text I put into the snake_case Converter?
It stays in your browser tab; the snake_case Converter sends nothing anywhere.
Can I copy the snake_case Converter result?
Save the snake_case Converter result as a text file, or copy it from the result box.

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.

More tools in Text & Writing Tools →

Search tools