snake_case Generator

Convert any text to snake_case — all lowercase, words separated by underscores. The standard naming convention for Python, Ruby, PostgreSQL, and database schemas.

PythonRubyPostgreSQLMySQLRailsFastAPI
0 Chars
0 Words
0 Lines

snake_case Examples

Input

hello world

snake_case

hello_world

Input

User Profile Settings

snake_case

user_profile_settings

Input

created at timestamp

snake_case

created_at_timestamp

Input

Total Price USD

snake_case

total_price_usd

What is snake_case?

snake_case is a naming convention where all words are lowercase and separated by underscores (_). It reads like a snake stretching across the word — hence the name.

It is the PEP 8 standard for Python and the conventional style for database column names in most SQL databases.

snake_case Usage by Language

PythonVariables, functions, modules: get_user_name()
RubyVariables and methods: calculate_total
PostgreSQLTable and column names: user_profiles
MySQLTable names: order_items, created_at
FastAPIRoute parameters and field names

Related Tools