Convert snake_case to PascalCase

Transform snake_case database columns and Python variables to PascalCase class names. Perfect for ORM mappings, API models, and code generation.

0 characters
0 characters

Examples: snake_case to PascalCase

Input (snake_case):
user_profile
Output (PascalCase):
UserProfile
Usage:class UserProfile extends Model
Input (snake_case):
order_item
Output (PascalCase):
OrderItem
Usage:interface OrderItem { ... }
Input (snake_case):
shopping_cart
Output (PascalCase):
ShoppingCart
Usage:export class ShoppingCart
Input (snake_case):
product_category
Output (PascalCase):
ProductCategory
Usage:type ProductCategory = ...
Input (snake_case):
api_response
Output (PascalCase):
ApiResponse
Usage:public class ApiResponse<T>

When to Use snake_case

  • Python variables and functions
  • Ruby methods and variables
  • Rust function and variable names
  • Database column names
Common in:
PythonRubyRustPHPSQL

When to Use PascalCase

  • Class names in most languages
  • Constructor functions
  • React component names
  • C# method names
Common in:
C#JavaTypeScriptC++Python (classes)

Related Conversions