Case Converter (camelCase, PascalCase, snake_case, kebab-case)

Convert text between common code naming conventions. Runs entirely in your browser.

How it works

The input is split into words at spaces, underscores, hyphens, and camelCase/PascalCase boundaries (including acronyms, e.g. XMLParserXML + Parser), then rejoined in the target convention. Accented Unicode letters (é, ö, ü, ...) are preserved rather than dropped.

Examples

InputcamelCasesnake_casekebab-case
hello worldhelloWorldhello_worldhello-world
XMLHttpRequestxmlHttpRequestxml_http_requestxml-http-request

FAQ

What happens with numbers? Digits attach to the preceding word (e.g. user2Name → words user2, Name).

What about symbols or emoji in the input? Only letters and digits form words; everything else acts as a separator and is dropped from the output.