Toolkit Hub

Case Converter

Switch text between camel, snake, kebab, title and more.

Input Text

lowercase
Example: hello world
UPPERCASE
Example: HELLO WORLD
Title Case
Example: Hello World
camelCase
Example: helloWorld
PascalCase
Example: HelloWorld
snake_case
Example: hello_world
kebab-case
Example: hello-world
CONSTANT_CASE
Example: HELLO_WORLD
dot.case
Example: hello.world
path/case
Example: hello/world
Sentence case
Example: Hello world
aLtErNaTiNg cAsE
Example: HeLlO WoRlD

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

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.