Case Converter
Switch text between camel, snake, kebab, title and more.
Input Text
What is the Case Converter?
A case converter rewrites the capitalisation and word separators of text without changing the words themselves. It turns "user first name" into userFirstName, user_first_name, user-first-name or UserFirstName, which is the everyday chore of moving identifiers between languages and APIs.
Frequently asked questions
Which case should I use for variables, files and URLs?
JavaScript and Java conventionally use camelCase for variables and PascalCase for classes. Python and SQL use snake_case. CSS classes, file names and URL slugs use kebab-case because hyphens are safe in URLs and readable to search engines.
Will it handle acronyms like ID and URL correctly?
Acronyms are treated as words, so "userID" becomes user_id rather than user_i_d. If you need a specific acronym style, convert and then adjust — the tool favours the predictable result over guessing.
Related Text & Code
- JSON FormatterFormat, validate and minify JSON documents.
- Text CompareDiff two blocks of text and highlight what changed.
- SQL FormatterPretty-print SQL queries with consistent keyword casing.
- Common Regex PatternsA searchable library of ready-to-use regular expressions.
- HTML BeautifierBeautify or minify HTML markup.
- Code Minifier & BeautifierBeautify or minify JavaScript, TypeScript, JSON, CSS, SCSS and LESS.
Case Converter is one of 10 tools in Text & Code on Toolkit Hub, a free collection of browser-based utilities. It requires no account and no installation. Browse all tools.