OS Garage

Developer Case Tool

snake_case Converter

Convert text to snake_case for Python, Ruby, and databases.

Features

CamelCase to snake_case

Detects camelCase and PascalCase word boundaries and inserts underscores correctly.

All Lowercase Output

snake_case is always lowercase — the converter lowercases every character.

Multi-Line Support

Process multiple identifiers at once by placing one per line.

How to Use

  1. 1

    Paste your text or identifiers

    Enter any text, camelCase, PascalCase, kebab-case, or phrase.

  2. 2

    View snake_case output

    The converter splits words and joins them with underscores in lowercase.

  3. 3

    Copy for use

    Use the output in Python code, SQL schemas, or config files.

Examples

Phrase

Input

get user profile data

Output

get_user_profile_data

From camelCase

Input

getUserProfileData

Output

get_user_profile_data

From kebab-case

Input

api-response-handler

Output

api_response_handler

Common Questions

snake_case is an identifier style that uses all lowercase letters with underscores separating words. It resembles a snake lying flat: 'get_user_data', 'my_variable', 'http_request_handler'.

It automatically detects word boundaries in camelCase and PascalCase names and separates them with underscores. 'getUserData' and 'GetUserData' both produce 'get_user_data'.