Case Converter & Text Naming Studio
Preserve punctuation in prose. Create predictable identifiers and safe naming lists. Your text stays in this browser.
Transform your text
Input → live review → copy or download · No text leaves your device
Advanced rules & reusable settings
Open a local TXT, CSV, TSV or JSON file. We only transform the fields you choose.
JSON values remain unchanged. Colliding converted keys block export.
Review the first changed segment
Quick variations · copy a different style
Case conversion stays in this browser. Identifier and slug styles deliberately remove some separators; this tool does not refactor references inside source code. Text is not automatically saved or uploaded.
How to use Text & Code Case Converter
- Paste a phrase, identifier or list of names. Existing underscores, hyphens and camel-case boundaries can become word separators.
- Choose a case style and decide whether each line should be handled independently.
- Review the live output and grapheme/UTF-8 counts. Move the result into the input for another conversion, or restore the previous input before exporting.
When to use this tool
Turn a label into a variable name, normalize a list of identifiers or prepare filename slugs. Check acronym handling and punctuation before using generated identifiers in code.
Choose a case style for the destination
camelCase and PascalCase join words for code identifiers. snake_case, CONSTANT_CASE, kebab-case and dot.case use separators. Title case preserves punctuation, known terms, and applies a basic configurable minor-word policy; it does not guarantee compliance with a publisher's house style. Sentence case preserves punctuation and spacing while lowercasing text and capitalizing sentence starts. Uppercase and lowercase leave separators in place.
Worked example
Input: HTTPResponse user_name
camelCase: httpResponseUserName
snake_case: http_response_user_name
kebab-case: http-response-user-name Convert independent field names without merging their boundaries
Original practice names
HTTPResponse user_name order ID
- Choose Convert each line separately and snake_case. The expected identifiers for this authored sample are
http_response_user_nameandorder_id. - Inspect acronym and word boundaries before replacing names in code or data. Identifier modes tokenize and rebuild words, discarding punctuation that may matter in a real source.
- Compare with Treat all text as one string only when one combined name is intended. It does not preserve each line as a separate identifier.
- Keep the original before using the result elsewhere. Use result as input is reversible using Restore original and bounded Undo/Redo for tool actions.
- Use prose-oriented casing for prose rather than assuming snake_case or camelCase is a spelling-preserving style change. Review proper names and language-specific capitalization.
Authored names and expected tokenization, not an executed conversion report. Changing an identifier here does not update references throughout a codebase. Use Text Diff to review resulting text or AI Output Cleaner for its separate markup-removal task.
Bulk and structured naming
Import a UTF-8 TXT, CSV, TSV or JSON file in the workspace. CSV conversion uses a quote-aware parser and only edits selected columns. JSON key conversion blocks conflicting target names; values remain unchanged. Neither option rewrites references or schemas elsewhere. Always review file exports before replacing originals.
Limits and output checks
Identifier modes intentionally discard punctuation and cannot recover your original spelling. Unicode letters are preserved through NFC normalization. Language-specific sentence segmentation and editorial title rules remain heuristic and require review. Always review acronyms, proper names and API keys before replacing source text.
Reference: JavaScript Unicode text handling.
Frequently asked questions
Can I convert a list without joining its lines?
Select the line-by-line setting. Each line is tokenized and converted independently, including blank lines.
Will sentence case remove punctuation?
No. Sentence case keeps punctuation and whitespace. Identifier-oriented modes such as snake_case intentionally rebuild words.
Is title casing the same as universal editorial styling?
No. The local title style preserves punctuation, applies common minor-word rules and recognizes a small editable brand/acronym list. Proper nouns and multilingual text still need review.
Can CSV and JSON conversion alter my data?
The structured editor changes only selected CSV cells or JSON property keys. It blocks duplicate converted keys and preserves JSON values; review schema references and exported files.
Can I undo moving output to input?
Use Restore original to recover the first input; Swap/Use Result and preset changes support bounded Undo/Redo. Native textarea typing still uses browser undo.
Review names after changing their case
Choose a prose or identifier mode and use line-by-line processing for independent entries. Review acronyms and proper names before copying the result.
Scope of this workflow
Identifier transformations can discard punctuation and cannot reconstruct original spelling. Language-specific title and sentence conventions are not universal.
Text Diff Checker — Compare Lines or Words · All developer tools · Privacy policy · Contact PixelOkay