Paste a phrase or an identifier. Phrase, camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE show up here. Nothing is sent to a server.
1
Paste a phrase. The six spellings show up here.
The same words are spelled differently in different languages and files. A phrase keeps spaces. camelCase and PascalCase glue the words and raise letters. snake_case and CONSTANT_CASE join with underscores. kebab-case joins with hyphens.
The page splits the input on spaces, underscores and hyphens, and on the boundary between a lowercase letter and an uppercase letter. A run of capitals in front of a normal word is split too, so parseHTMLString becomes parse, html, string. Every word is then lowercased before the six spellings are built.
hello world
Hello world helloWorld HelloWorld hello_world hello-world HELLO_WORLD
parseHTMLString
parseHtmlString
HTMLParser becomes HtmlParser in PascalCase, because the letters are lowercased and only the word starts are raised. The tool does not keep an acronym in capitals.
A digit sticks to the word it sits in. item2 stays one word. A hyphen or an underscore starts a new word.
Uppercase and lowercase follow the browser’s default Unicode case mapping. A few letters do not round-trip, so a result pasted back in can split differently.
The phrase line capitalizes the first word and leaves the rest in lowercase. It is a title of one sentence, not Title Case of every word.
The input is limited to 20,000 characters. Past that, the previous lines stay on screen and an error is shown. The share link stores the source text only.
PEP 8, “Style Guide for Python Code”, dates from 2001. It recommends lowercase_with_underscores for functions and variables, and CapWords for class names.
CSS property names are written with hyphens, as in background-color. A custom property keeps that shape and adds a leading --.