Snake Case Converter

Convert text to snake_case format for Python and databases

Free, no signup — converted in your browser, never uploaded.

Snake Case Converter

31 characters1 line

TextSample
31 charactersEach line converts on its own
snake_case
convert_this_text_to_snake_case

Other developer formats

  • kebab-case
    convert-this-text-to-snake-case
  • camelCase
    convertThisTextToSnakeCase
  • PascalCase
    ConvertThisTextToSnakeCase
Converted in your browser · 0 bytes uploaded31 characters1 lineGuide

What is Snake Case?

Snake case is a naming convention where spaces are replaced with underscores and all letters are lowercase. For example, "my variable name" becomes "my_variable_name".

It gets its name because the underscores resemble a snake lying on the ground.

When to Use Snake Case

  • Python: The standard convention for variable names and function names (PEP 8)
  • Database columns: Common in SQL database schemas
  • File names: Often used for configuration files
  • Ruby: Standard naming convention for methods and variables
  • C/C++: Sometimes used for constants and macros

Snake Case vs Other Conventions

ConventionExampleCommon Use
snake_caseuser_namePython, Ruby, databases
camelCaseuserNameJavaScript, Java
PascalCaseUserNameC#, class names
kebab-caseuser-nameURLs, CSS classes