Case Converter
Convert text between the most common naming conventions used in programming and writing.
About the Case Converter
The DevGizmo Case Converter instantly transforms any piece of text into the most common programming and writing conventions. Developers, writers, and engineers deal with naming conventions every day — whether it is defining a variable in JavaScript, writing a constant in Python, naming an XML attribute, or structuring a URL slug.
Paste or type your text into the input box and all eight output formats update in real time. You can copy any result to your clipboard with a single click, making it trivially fast to move between tasks without ever leaving the page.
Supported Case Formats
- camelCase — first word lowercase, each subsequent word capitalised with no separators. The standard for variables and functions in JavaScript, TypeScript, Java, and Swift.
- PascalCase — every word capitalised, no separators. Used for class names, components, and types in TypeScript, C#, and Java.
- snake_case — words joined by underscores, all lowercase. The default convention in Python, Ruby, and SQL column names.
- kebab-case — words joined by hyphens, all lowercase. Used for URL slugs, CSS class names, and HTML data attributes.
- UPPER CASE — every character uppercased. Useful for constant values and display headings.
- lower case — every character lowercased. Useful for normalising input and database key comparisons.
- Title Case — the first letter of every word capitalised. The standard format for article headings, book titles, and navigation labels.
- Sentence case — only the very first character of the entire string capitalised. Standard for sentences, meta descriptions, and UI copy.
How the Conversion Works
The converter first normalises your input by detecting word boundaries across all common formats — spaces, hyphens, underscores, and camelCase or PascalCase transitions. It then reassembles the extracted words according to the target convention. This means you can paste text in any format and all eight outputs will be correct simultaneously.