Zero Signup ToolsFree browser tools

Developer Tools

Variable Name Case Converter

Convert variable names between camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE, kebab-case, dot.case, and 10 more styles in your browser.

6 names, 85 chars

Tokeniser options

Each identifier is split into words and then rebuilt in every naming style. These options control how the split happens.

Comma or whitespace separated. Matching is case-insensitive. Acronyms are only applied when the active style preserves case information (camelCase, PascalCase, Title Case, Sentence case, Header-Case, Train-Case, snake_case, kebab-case, dot.case, path/case).

Tokeniser preview

userIdToken

splits into

useridtoken

camelCase

userIdToken

Lowercase first word, each later word capitalised. Common in JavaScript and Java.

userIDToken
httpServerRequest
firstName
openSourceProject
v2FinalDraft
apiKey2

6 converted

PascalCase

UserIdToken

Every word capitalised, no separator. Common for classes and types.

UserIDToken
HTTPServerRequest
FirstName
OpenSourceProject
V2FinalDraft
APIKey2

6 converted

snake_case

user_id_token

Lowercase words joined by underscores. Common in Python, Ruby, Rust.

user_ID_token
HTTP_server_request
first_name
open_source_project
v2_final_draft
API_key_2

6 converted

SCREAMING_SNAKE_CASE

USER_ID_TOKEN

Uppercase words joined by underscores. Common for constants and ENV.

USER_ID_TOKEN
HTTP_SERVER_REQUEST
FIRST_NAME
OPEN_SOURCE_PROJECT
V2_FINAL_DRAFT
API_KEY_2

6 converted

kebab-case

user-id-token

Lowercase words joined by hyphens. Common in URLs, CSS, file names.

user-ID-token
HTTP-server-request
first-name
open-source-project
v2-final-draft
API-key-2

6 converted

Train-Case

User-Id-Token

Capitalised words joined by hyphens.

User-ID-Token
HTTP-Server-Request
First-Name
Open-Source-Project
V2-Final-Draft
API-Key-2

6 converted

COBOL-CASE

USER-ID-TOKEN

Uppercase words joined by hyphens.

USER-ID-TOKEN
HTTP-SERVER-REQUEST
FIRST-NAME
OPEN-SOURCE-PROJECT
V2-FINAL-DRAFT
API-KEY-2

6 converted

dot.case

user.id.token

Lowercase words joined by dots. Common in config keys and namespaces.

user.ID.token
HTTP.server.request
first.name
open.source.project
v2.final.draft
API.key.2

6 converted

path/case

user/id/token

Lowercase words joined by slashes. Useful for URL paths.

user/ID/token
HTTP/server/request
first/name
open/source/project
v2/final/draft
API/key/2

6 converted

Header-Case

User-Id-Token

HTTP header style with capitalised words and hyphens.

User-ID-Token
HTTP-Server-Request
First-Name
Open-Source-Project
V2-Final-Draft
API-Key-2

6 converted

Title Case

User Id Token

Capitalised words separated by spaces.

User ID Token
HTTP Server Request
First Name
Open Source Project
V2 Final Draft
API Key 2

6 converted

Sentence case

User id token

Only the first word capitalised, rest lowercase.

User ID token
HTTP server request
First name
Open source project
V2 final draft
API key 2

6 converted

lower case

user id token

Lowercase words separated by spaces.

user id token
http server request
first name
open source project
v2 final draft
api key 2

6 converted

UPPER CASE

USER ID TOKEN

Uppercase words separated by spaces.

USER ID TOKEN
HTTP SERVER REQUEST
FIRST NAME
OPEN SOURCE PROJECT
V2 FINAL DRAFT
API KEY 2

6 converted

flatcase

useridtoken

All lowercase, no separator. Common for short identifiers.

useridtoken
httpserverrequest
firstname
opensourceproject
v2finaldraft
apikey2

6 converted

UPPERFLATCASE

USERIDTOKEN

All uppercase, no separator.

USERIDTOKEN
HTTPSERVERREQUEST
FIRSTNAME
OPENSOURCEPROJECT
V2FINALDRAFT
APIKEY2

6 converted

What the tokeniser does

  • Punctuation, hyphens, underscores, dots, slashes, and whitespace are treated as separators and collapsed.
  • A run of uppercase letters followed by a lowercase letter is split so HTTPRequest becomes HTTP, Request.
  • A boundary is inserted between a lowercase letter or digit and an uppercase letter, so fooBar becomes foo, Bar.
  • Digits stay attached to the previous token by default. Turn on the digit boundary toggle to split utf8 into utf, 8.
  • Known acronyms are kept uppercase in cases that allow it. The list is fully editable, so you can add project-specific tokens.

Conversions run instantly in your browser using only standard JavaScript. Identifiers are never uploaded.

How to use

  1. Paste one identifier per line into the input box. Mix of camelCase, snake_case, kebab-case, or natural language all work.
  2. Toggle Preserve known acronyms if you want HTTP, URL, ID, and JSON to stay uppercase in cases that support it.
  3. Turn on Treat digits as word boundaries if numbers in your identifiers should start a new token (utf8Encoder becomes utf-8-encoder).
  4. Edit the acronym list to add project-specific tokens, or click Reset acronyms to restore the defaults.
  5. Watch every naming style update instantly in the grid below. The tokeniser preview shows how the first identifier was split.
  6. Click Copy on any row to grab a single conversion, or Copy all on a style card to copy the whole column joined by newlines.

About this tool

Variable Name Case Converter turns any identifier into every common programming naming style at once: camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE (CONSTANT_CASE), kebab-case, Train-Case, COBOL-CASE, dot.case, path/case, Header-Case, Title Case, Sentence case, lower case, UPPER CASE, flatcase, and UPPERFLATCASE. The smart tokeniser understands the boundaries that matter in real code. Mixed-case runs split correctly so HTTPServerRequest becomes HTTP, Server, Request rather than H, T, T, P, Server, Request. Separators (underscore, hyphen, dot, slash, whitespace) collapse into single boundaries, and an optional digit-boundary mode splits letters from numbers so utf8Encoder becomes utf, 8, encoder when you need that. Known acronyms (API, URL, HTTP, JSON, SQL, UUID, JWT, and many more) stay uppercase in cases that allow it, and the acronym list is fully editable so you can add project-specific tokens like SKU, ASN, or AWS. The tool processes multiple identifiers at once: paste one per line and every line is converted to every style independently, with empty lines preserved so the columns line up with the input. Each output card shows the converted values for that style with per-row copy buttons and a Copy all that grabs the entire column joined by newlines, ready to paste into an editor, a SQL migration, a JSON config, a CSS file, or an environment variable list. A tokeniser preview shows how the first identifier in your input was split into words, so you can see exactly what the converter is doing before you trust the result. Useful for renaming database columns, normalising API field names, converting between language conventions during a port (Java to Python, Python to JavaScript, Ruby to Rust), generating REST URL slugs, building HTTP header names, naming CSS classes, writing environment variable keys, and cleaning up legacy code where the naming style drifted over time. Everything happens locally in your browser. Identifiers are never uploaded, logged, or shared.

Free to use. Works in your browser. No signup, no login.

Related tools

You may also like

All tools
All toolsDeveloper Tools