Text Case Converter
Transform text between uppercase, lowercase, title case, sentence case, camelCase, PascalCase, snake_case, kebab-case, and SCREAMING_SNAKE_CASE in one click.
Naming conventions exist for a reason: JavaScript and Java use camelCase for variables, Python uses snake_case, CSS uses kebab-case, and environment variables use SCREAMING_SNAKE_CASE universally. Converting between them manually is error-prone on long identifiers. This text case converter handles all common casing styles used in writing and programming. Paste your text, choose a conversion, copy the result — nothing leaves your browser.
How to Convert Text Case
- Paste or type your text into the input area.
- Click any conversion button — the output updates instantly.
- Copy the converted text with the Copy button.
- Switch between different case styles without re-pasting your original text.
Available Conversions
UPPERCASE and lowercase
UPPERCASE converts every character to its capital form, used for acronyms (API, HTML, URL) and constants in some languages. lowercase converts every character to its small form. Both use JavaScript's Unicode-aware toUpperCase() and toLowerCase(), which correctly handle accented Latin characters, Turkish dotless-i, and other locale-specific casing rules.
Title Case and Sentence Case
Title Case capitalizes the first letter of every word, used for article titles, headings, and product names. Sentence case capitalizes only the first letter of each sentence, matching standard prose writing style. Note that strict Chicago or AP title case rules also lowercase short prepositions and conjunctions — adjust those manually after conversion if style guide compliance is required.
camelCase and PascalCase
camelCase joins words without spaces, lowercasing the first word and capitalizing subsequent words: myVariableName. Standard in JavaScript, Java, Swift, Kotlin, and C# for variables and functions. PascalCase capitalizes every word including the first: MyClassName. Standard for class names, React components, and TypeScript interfaces across virtually all languages.
snake_case and SCREAMING_SNAKE_CASE
snake_case joins words with underscores, all lowercase: my_variable_name. Standard in Python (PEP 8), Ruby, Rust, and SQL column names. SCREAMING_SNAKE_CASE is snake_case in full uppercase: MY_CONSTANT_NAME. The universal convention for constants and environment variables across all languages.
kebab-case
kebab-case joins words with hyphens, all lowercase: my-component-name. Standard for HTML custom element names (per the Web Components specification), CSS class names, URL slugs, and file names in most front-end projects. Unlike underscores, hyphens are word separators in search engines — word-word is treated as two distinct words by Google's indexer.
Example
Input
hello world from text converter
All Conversions
UPPERCASE: HELLO WORLD FROM TEXT CONVERTER
lowercase: hello world from text converter
Title Case: Hello World From Text Converter
Sentence case: Hello world from text converter
camelCase: helloWorldFromTextConverter
PascalCase: HelloWorldFromTextConverter
snake_case: hello_world_from_text_converter
kebab-case: hello-world-from-text-converter
SCREAMING_SNAKE_CASE: HELLO_WORLD_FROM_TEXT_CONVERTER
Programming Naming Conventions by Language
- JavaScript/TypeScript: camelCase for variables/functions, PascalCase for classes/components, SCREAMING_SNAKE_CASE for constants
- Python: snake_case for variables/functions (PEP 8), PascalCase for classes, SCREAMING_SNAKE_CASE for constants
- CSS/HTML: kebab-case for class names, custom element names, CSS custom properties
- SQL: snake_case for table and column names
- Files/URLs: kebab-case for file names and URL slugs
- Environment variables: SCREAMING_SNAKE_CASE universally
Use the Slug Generator for URL-specific slug creation with Unicode normalization and special character removal. The Word Counter checks text length before and after conversion. For full codebase identifier refactoring, use your IDE's rename feature rather than this manual tool.
Frequently Asked Questions
What is the difference between camelCase and PascalCase?
In camelCase, the first word is entirely lowercase and subsequent words start with a capital letter: myVariableName. In PascalCase (also called UpperCamelCase), every word including the first starts with a capital letter: MyClassName. camelCase is standard for variables and functions; PascalCase is standard for class names, constructors, and React components.
Does title case follow a specific style guide?
Title case rules vary between style guides. Chicago Manual of Style lowercases articles (a, an, the), coordinating conjunctions, and short prepositions unless they are first or last. AP Style lowercases prepositions under four letters. This tool capitalizes every word as a general-purpose approach. Adjust short words manually for strict style guide compliance.
Can I convert programming identifiers between naming conventions?
Yes. The converter detects word boundaries by splitting on spaces, underscores, hyphens, and camelCase transitions (capital letters following lowercase letters). myVariableName converts correctly to my-variable-name or my_variable_name. Input with consecutive capitals like parseHTTPRequest may need manual adjustment of acronym boundaries.
Does the converter handle non-English characters and accented letters?
Yes. The converter uses JavaScript's built-in toUpperCase() and toLowerCase(), which are Unicode-aware. Accented characters like é, ü, ñ, and ç are handled correctly. Locale-specific rules (like Turkish dotless-i) follow the browser's default locale.
Is there a text length limit?
No hard limit. Conversion runs client-side and handles large blocks of text — entire source files, configuration documents, or long articles. Very large inputs (100,000+ characters) may take a fraction of a second longer, but there is no cutoff.