No Login Data Private Local Save

Advanced Case Converter – Online snake_case camelCase kebab-case

21
0
0
0
Copied!

Advanced Case Converter

Instantly convert text between snake_case, camelCase, kebab-case, PascalCase and more

hello_world helloWorld hello-world HelloWorld HELLO_WORLD
0 chars 0 words
snake_case
CONSTANT_CASE
camelCase
PascalCase
kebab-case
Train-Case
dot.case
path/case
Sentence case
Title Case
lowercase
UPPERCASE
aLtErNaTiNg cAsE
InVeRsE cAsE

Click any Copy button
or use Copy All above

Frequently Asked Questions

Snake case is a naming convention where words are separated by underscores (_) and all letters are lowercase. It is widely used in Python for variable names, function names, and file names (e.g., my_variable_name). It's also common in Ruby and SQL database column names. The style improves readability for multi-word identifiers without relying on capitalization.

camelCase starts with a lowercase letter and capitalizes subsequent words (e.g., myVariableName). It's standard in JavaScript and Java for variables and methods. PascalCase capitalizes every word including the first (e.g., MyClassName). PascalCase is typically used for class names in most object-oriented languages like Java, C#, and Python (PEP 8 for classes).

Kebab case uses hyphens to separate words (e.g., background-color, my-page-url). It's the standard in CSS property names and is widely preferred in URLs because search engines like Google treat hyphens as word separators, boosting SEO. Underscores in URLs are not treated as separators by search engines, making kebab-case the preferred choice for web addresses and SEO-friendly slugs.

CONSTANT_CASE, also known as uppercase snake case or screaming snake case, uses all uppercase letters with underscores (e.g., MAX_TIMEOUT_SECONDS). It is universally used for constants in programming — values that should not change during execution. Languages like Python, Java, C++, and JavaScript all conventionally use this format for constant declarations and environment variables.

Our converter uses intelligent word detection that automatically identifies common delimiters (underscores, hyphens, dots, slashes, spaces) and camelCase/PascalCase boundaries. It first normalizes the input by splitting on known separators and uppercase letter transitions, extracting individual words regardless of the original format. This means you can paste helloWorld_example or even inconsistently formatted text and get clean, consistent output in all target formats.

dot.case (dot notation) is common in configuration files, package names (e.g., com.example.app), and object property access in programming. path/case is used for file system paths, URLs segments, and routing patterns. Both follow similar word-separation principles but use different separators suited to their specific contexts.

Alternating case (also called "spongebob case" or "sarcasm case" — e.g., aLtErNaTiNg) alternates between lowercase and uppercase letters. While primarily used in internet memes and informal communication to convey sarcasm or mockery, it also serves as a simple text obfuscation technique. Some developers use it for testing case sensitivity in applications or creating visually distinctive placeholder text.

The choice depends on your language and context: JavaScript/TypeScript → camelCase for variables, PascalCase for classes; Python → snake_case for variables/functions, PascalCase for classes, CONSTANT_CASE for constants; CSS/HTML → kebab-case for properties and IDs; REST APIs → kebab-case for URL slugs; Databases → snake_case for column names (especially in PostgreSQL). Consistency within your project is more important than the specific format you choose.