More
More
Case Converter & Slug
UPPER, lower, Title, camelCase, snake_case and URL slugs.
Free tools that run in your browser. Nothing you type, open or create is uploaded to NerdBible or anyone else.
Every style updates as you type. For the code styles and the slug, each line is converted on its own, so you can paste a list of names.
Title Case keeps short words such as a, and, of and the in lower case unless they start or end the title, and leaves words that already mix capitals (iPhone, NASA) as they are. The slug drops accents (café becomes cafe) and keeps only a to z, 0 to 9 and hyphens.
How to use it
- Type or paste text into the box.
- Every case style is shown below at once, from UPPER CASE to snake_case and a URL slug.
- Press Copy next to the style you need.
Questions
What is the difference between camelCase and PascalCase?
Both join words without spaces and capitalise each new word. camelCase starts with a lower case letter (userName), PascalCase starts with a capital (UserName). JavaScript variables usually use camelCase and class names PascalCase.
When should I use snake_case or kebab-case?
snake_case is common for Python variables and database columns. kebab-case is used for URLs, CSS class names and file names. CONSTANT_CASE is the convention for constants in most languages.
What makes a good URL slug?
Short, lower case, words separated by hyphens and no accents or special characters. Leaving out filler words such as the or and keeps it shorter, which you can do by editing the text first.
Does Title Case follow a style guide?
It follows the rule most guides share: capitalise every word except short articles, conjunctions and prepositions, and always capitalise the first and last word. Check your house style for edge cases.
About this tool
About the case converter
Type or paste text once and see it in every common case style side by side, then copy the one you need. It saves retyping a heading that was written in capitals, and it saves remembering the naming rules of each programming language.
Styles for writing
- UPPER CASE and lower case.
- Title Case: short words such as a, and, of and the stay lower case unless they start or end the title, and words with their own capitals, such as iPhone or NASA, are left alone.
- Sentence case: a capital only at the start of each sentence.
Styles for code
- camelCase for JavaScript variables, PascalCase for class names.
- snake_case for Python and database columns, CONSTANT_CASE for constants.
- kebab-case for CSS classes and file names.
URL slugs
The slug drops accents, so cafe replaces café, and keeps only a to z, 0 to 9 and hyphens, which gives short, readable page addresses. Remove filler words before converting for an even shorter slug.
Everything is converted in your browser as you type.
Related tools
- Word Counter & ReadabilityWords, characters, sentences and reading time, plus reading ease, grade level, long sentences and passive voice.
- Sort & Dedupe LinesSort, reverse, shuffle and remove duplicate lines.
- Fancy Text GeneratorBold, italic and script Unicode text for bios.
- Escape, Encode & DecodeEscape and unescape text for JSON, JavaScript, HTML entities, XML, SQL, CSV, regex and URLs.
- Lorem Ipsum GeneratorPlaceholder paragraphs, sentences or words.