Every full-stack feature touches at least five different naming conventions before it ships. You define columns in Postgres, map them into TypeScript interfaces, expose a REST endpoint or URL slug, wire up CSS custom properties, and configure feature flags in .env.
Here is the exact same concept across 8 developer naming formats:
| Format | Example | Where You Use It |
|---|---|---|
snake_case |
max_retry_count |
PostgreSQL columns, Python (PEP 8), Rust, Ruby |
camelCase |
maxRetryCount |
JavaScript/TypeScript variables, JSON API keys, Java methods |
PascalCase |
MaxRetryCount |
React components, TypeScript types/interfaces, C# public members |
kebab-case |
max-retry-count |
URL slugs, CSS classes/variables, HTML attributes, CLI flags |
CONSTANT_CASE |
MAX_RETRY_COUNT |
.env variables, global constants |
dot.case |
max.retry.count |
Spring Boot properties, i18n keys, YAML/JSON config paths |
path/case |
max/retry/count |
File routes, S3 object keys, component directories |
COBOL-CASE |
MAX-RETRY-COUNT |
HTTP headers, legacy mainframe/COBOL identifiers |
The 3 Annoyances When Batch-Converting Lists
Converting one variable name by hand takes two seconds. Converting 40 database columns into TypeScript fields or .env keys is where mistakes creep in:
- Collapsed newlines: Many quick online converters treat a 40-line list as one giant paragraph, turning all 40 columns into a single 300-character string.
-
Broken acronyms: Pasting
httpResponseTimeoruserIPv6Addressinto a basic regex turns it intoh_t_t_p_response_timeoruser_i_pv6_address. -
Hidden whitespace & Windows
CRLFnoise: Copying columns out of a spreadsheet, Jira ticket, or Windows editor brings along trailing spaces, blank lines, and\r\nendings that pollute git diffs.
Quick Example: Postgres Columns → TypeScript Fields + Env Keys
Starting list copied from a schema migration:
user_id
http_response_timeout
api_v2_secret_key
billing_account_status
With line-preserving, acronym-aware conversion:
-
To
camelCase(TypeScript DTO):userId,httpResponseTimeout,apiV2SecretKey,billingAccountStatus -
To
CONSTANT_CASE(.env):USER_ID,HTTP_RESPONSE_TIMEOUT,API_V_2_SECRET_KEY,BILLING_ACCOUNT_STATUS -
To
kebab-case(CLI flags / slugs):user-id,http-response-timeout,api-v-2-secret-key,billing-account-status
Keep Proprietary Schemas Out of Server-Side Tools
One underrated privacy rule: avoid pasting internal database schemas, API key names, or unreleased feature flags into random websites that POST your text to a backend API.
If you're in VS Code, extensions like Change Case handle multi-cursor edits right inside your editor. When you're copying lists out of a browser, Notion doc, or spreadsheet and want a zero-install local utility with Preserve Lines on by default, acronym-aware splitting across all 8 developer formats, and 1-click Trim Lines / Remove Blank Lines / CRLF → LF cleanup without any network uploads, KivaroTools' in-browser text case converter runs entirely in client-side JavaScript memory (no cookies, no localStorage, no API calls). It's part of the KivaroTools browser utility suite.
Quick Sanity Checklist
- Normalize whitespace (
Trim Lines+CRLF → LF) before converting multi-line lists. - Double-check digit boundaries (like
v2vs.v_2) when generating environment variable names or URL slugs. - Match your target language's idiomatic convention rather than forcing one case across the whole stack.
Top comments (0)