This page rewrites camelCase identifiers such as userId or lastLoginAt into snake_case (user_id, last_login_at) inside whatever text you paste: a JS object, a JSON body, a TypeScript interface or a plain list of names.
The typical reason is a boundary between ecosystems. A frontend or Java service names fields in camelCase, while the Python code, the PostgreSQL/MySQL columns or the analytics schema on the other side expect snake_case. Instead of retyping each key, paste the block and copy the converted version.
String box with your code or field list; the Result box updates as you type and highlights every renamed identifier.Result box, or select all and copy, then paste it back into your editor.const payload = {
userId: 42,
displayName: "Mina",
isActive: true,
lastLoginAt: "2024-05-01T09:30:00Z",
};const payload = {
user_id: 42,
display_name: "Mina",
is_active: true,
last_login_at: "2024-05-01T09:30:00Z",
};Only words that contain an uppercase letter after a lowercase start are treated as camelCase, so the single-word payload is left alone, and the date string is untouched because it has no camelCase word in it.
lastLoginAt → last_login_at.base64Data → base64_data, address2Line → address2_line.A FastAPI or Django REST endpoint usually declares user_id and created_at. Converting the request object built in the browser shows exactly which keys the backend model needs.
When a form adds marketingOptIn and referralCode, the database columns are normally marketing_opt_in and referral_code. Paste the field list and use the result in your ALTER TABLE statement.
userID becomes user_id, homeURL becomes home_url, and parseHTTPServer becomes parse_http_server.getElementById. Paste only the part you actually want renamed.userID become user_id?Yes. A run of capitals is read as one word and lowercased, so userID → user_id. The one case it cannot split is two acronyms written together, such as loadXMLHTTPData, which becomes load_xmlhttp_data.
Values are only changed if they themselves look like camelCase words. Numbers, dates and ordinary sentences stay as they are; a string value like "darkMode" would be converted, so check enum-like values.