snake_case Converter

Convert text to uppercase, lowercase, title case and more — in seconds.

Free to use · No sign-up · Your text stays in your browser

0 Characters0 Words0 Lines

0 Characters0 Words0 Lines

Text cases

For developers

Options
Used for title case small words, sentence case and accented letters.

Private by design: your text is converted in your browser and is never uploaded or saved.

Every case at once

Click a card to show it as the main result, or copy it straight away.

Text cases

  • THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG. IT'S A CLASSIC TEST SENTENCE FROM THE USA.

  • the quick brown fox jumps over the lazy dog. it's a classic test sentence from the usa.

  • The quick brown fox jumps over the lazy dog. It's a classic test sentence from the USA.

  • The Quick Brown Fox Jumps Over the Lazy Dog. It's a Classic Test Sentence From the USA.

  • The Quick Brown Fox Jumps Over The Lazy Dog. It's A Classic Test Sentence From The USA.

  • tHe QuIcK bRoWn FoX jUmPs OvEr ThE lAzY dOg. It'S a ClAsSiC tEsT sEnTeNcE fRoM tHe UsA.

  • THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG. IT'S A CLASSIC TEST SENTENCE FROM THE usa.

  • tHE qUICK bROWN fOX jUMPS oVER tHE lAZY dOG. iT'S a cLASSIC tEST sENTENCE fROM tHE uSA.

For developers

  • theQuickBrownFoxJumpsOverTheLazyDogItsAClassicTestSentenceFromTheUsa

  • TheQuickBrownFoxJumpsOverTheLazyDogItsAClassicTestSentenceFromTheUsa

  • the_quick_brown_fox_jumps_over_the_lazy_dog_its_a_classic_test_sentence_from_the_usa

  • the-quick-brown-fox-jumps-over-the-lazy-dog-its-a-classic-test-sentence-from-the-usa

  • THE_QUICK_BROWN_FOX_JUMPS_OVER_THE_LAZY_DOG_ITS_A_CLASSIC_TEST_SENTENCE_FROM_THE_USA

  • the.quick.brown.fox.jumps.over.the.lazy.dog.its.a.classic.test.sentence.from.the.usa

Turn phrases or camelCase into snake_case for Python and database names, or CONSTANT_CASE for constants and environment variables.

Examples

snake_case
Before

User First Name getUserById order-total-amount

After

user_first_name get_user_by_id order_total_amount

CONSTANT_CASE
Before

max retry count apiBaseUrl

After

MAX_RETRY_COUNT API_BASE_URL

Where snake_case is used

  • Python: the PEP 8 style guide uses snake_case for variable, function and module names.
  • Databases: table and column names such as created_at or user_id.
  • Ruby, Rust and PHP: method and variable names.
  • CONSTANT_CASE: constants (MAX_SIZE) and environment variables (DATABASE_URL) in almost every language.

How the converter splits words

Spaces, hyphens, dots and existing capitals all mark a new word, so getUserById, get-user-by-id and Get user by ID all become get_user_by_id. Apostrophes are dropped, and each line converts on its own.

Frequently asked questions

How do I convert camelCase to snake_case?

Paste your camelCase names above with snake_case selected. Each capital letter starts a new word: firstName → first_name.

What is CONSTANT_CASE?

Also called SCREAMING_SNAKE_CASE: capital letters joined by underscores, like API_KEY. It's used for values that don't change.