Hack the Hydra

Case converter

Change the capitalization of any text, or turn a phrase into a programming identifier such as camelCase, snake_case or kebab-case. Pick a style and the result appears instantly.

🔒 Private by design: the conversion runs in this browser tab. Nothing is uploaded.

Case converter is a free online tool by Hack the Hydra. Convert text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case or CONSTANT_CASE. Free and private.

100% freeNo upload: runs in your browserNo sign-up
Case converter: the tool with a sample file converted

Text styles

UPPERCASE and lowercase change every letter. Title Case capitalizes the first letter of each word; Sentence case capitalizes only the first letter of each sentence and leaves the rest lowercase. Note that these are mechanical rules: Title Case here does not keep small words such as "of" or "and" lowercase, as some style guides require, so check headlines by hand.

Programming identifiers

camelCase and PascalCase join words with no separator, snake_case uses underscores, kebab-case uses hyphens and CONSTANT_CASE is snake_case in capitals. Existing camelCase input is split at the capital letters first, so "userAccountId" becomes "user_account_id". Each line of your input is converted separately, which makes it easy to rename a list of variables at once.

Where each style is used

JavaScript and Java variables use camelCase, classes use PascalCase, Python and Ruby prefer snake_case, CSS classes and URL slugs use kebab-case, and constants or environment variables use CONSTANT_CASE. Accented letters are handled correctly in all modes.

Example

A heading turned into snake_case for a file or variable name.

Input

monthly sales report

Output

monthly_sales_report

How to use

  1. Type or paste your text in the box above.
  2. The result updates as you type; change the options to switch mode.
  3. Copy the result or download it.

FAQ

Is my text uploaded?

No. The conversion is plain JavaScript running in your browser tab.

Why does Title Case capitalize small words like "the"?

The tool applies one simple rule to every word. Editorial title case rules differ between style guides (AP, Chicago, APA), so apply your guide's exceptions manually.

Does it handle accents and non-English letters?

Yes. It uses Unicode-aware rules, so "éCOLE" becomes "École" in Title Case. A few languages have special rules (for example Turkish dotted i) that are not applied.

Can I convert several lines at once?

Yes. For identifier styles each line becomes its own identifier; for the other styles the whole text is converted.

More free converters

PDF to Markdown converterOCR PDF: scanned PDF to textImage to text (OCR)Word (DOCX) to Markdown converterExcel & CSV to Markdown tablesHTML to Markdown converterPowerPoint (PPTX) to Markdown converterJSON to Markdown tablePDF to text converterExcel to JSON converterMarkdown to HTML converterMerge PDF filesSplit PDF: extract pagesRotate PDFJPG to PDF converterPDF to JPG converterImage converter: PNG, JPG, WebPCompress image: JPG and WebPQR code generatorWord counterJSON formatter and validatorBase64 encode and decodeURL encoder and decoderUUID v4 generatorStrong password generatorLorem ipsum generatorJSON to CSV converterRemove duplicate linesUnix timestamp converterJSON to YAML converterText diff checkerImage resizerPercentage calculatorAge calculatorHash generator (SHA-256, SHA-1, SHA-512)Color converter: HEX, RGB, HSLDays between dates calculatorYAML to JSON converterUnit converterJWT decoderBinary, hex, decimal and octal converterRoman numeral converterRegex testerCron expression explainerPDF to Markdown for ChatGPTPDF to Markdown for ClaudePDF to Markdown for RAG pipelinesPDF to Markdown for ObsidianPDF to Notion (via Markdown)Screenshot to textFrench OCR: image to textCSV to Markdown tableGoogle Docs to MarkdownJPG / JPEG to text (OCR)PNG to text (OCR)CSV to JSON converterPNG to JPG converterJPG to PNG converterWebP to PNG converter