Developer Tool
Case Converter
Convert names between camelCase, snake_case, kebab-case, PascalCase and more.
Runs in your browser — nothing is uploaded
camelCase
userProfileId httpServerError maxRetryCount
PascalCase
UserProfileId HttpServerError MaxRetryCount
snake_case
user_profile_id http_server_error max_retry_count
kebab-case
user-profile-id http-server-error max-retry-count
CONSTANT_CASE
USER_PROFILE_ID HTTP_SERVER_ERROR MAX_RETRY_COUNT
Title Case
User Profile Id Http Server Error Max Retry Count
lower case
user profile id http server error max retry count
What this does
Different languages and tools expect different naming styles: JavaScript variables in camelCase, Python functions in snake_case, CSS classes and URLs in kebab-case, constants in CONSTANT_CASE. Renaming by hand is slow and easy to get subtly wrong, especially when moving data between a Python backend and a JavaScript frontend.
Paste a name or a list of names, one per line, and every style is shown at once.
How to use it
- Paste text, one name per line if you have several.
- Copy the style you need.
Where it stops being right
- Words are split at spaces, underscores, hyphens and lowercase-to-uppercase boundaries. Runs of capitals such as HTTPServer are split as HTTP and Server, which is usually but not always what you want.
- Title Case capitalises every word; it does not apply a style guide's rules about small words such as of and the.
Questions
- What is the difference between camelCase and PascalCase?
- camelCase starts with a lowercase letter (userName); PascalCase starts with a capital (UserName). Many languages use PascalCase for class names and camelCase for variables.
- Why do URLs usually use kebab-case?
- Hyphens are safe in URLs, easy to read, and treated as word separators by search engines, while underscores and capital letters are easier to mistype.
- Is my text sent anywhere?
- No. The conversion happens in your browser.
More developer tools
- Regex TesterTest a JavaScript regular expression against sample text and see every match and group.
- Word & Character CounterCount words, characters, lines, bytes and reading time as you type.
- JSON Formatter & ValidatorPretty-print, minify and check JSON, with the position of any syntax error.
- Base64 Encoder & DecoderConvert text to Base64 and back, with correct handling of non-English characters.