Convert camelCase to snake_case
Convert camelCase to snake_case instantly. Paste your text below and copy the result.
Convert to
Use this tool from AI agents
This tool's engine is available to AI agents over MCP as convert_case. Add the Clean.tools server, then your agent can call it directly.
claude mcp add --transport http clean-tools https://mcp.clean.tools/mcpclaude mcp add --transport http clean-tools https://mcp.clean.tools/mcp{"mcpServers":{"clean-tools":{"command":"npx","args":["-y","@clean-tools/mcp"]}}}{"mcpServers":{"clean-tools":{"command":"npx","args":["-y","@clean-tools/mcp"]}}}https://mcp.clean.tools/mcphttps://mcp.clean.tools/mcpOr call it over plain HTTP from any script. Same engine, JSON in and JSON out, no key:
curl -s https://api.clean.tools/v1/convert_case \
-H 'content-type: application/json' \
-d '{"text":"the HTML5 quick_brown-fox JUMPS over the lazyDog","case":"camel"}'curl -s https://api.clean.tools/v1/convert_case \
-H 'content-type: application/json' \
-d '{"text":"the HTML5 quick_brown-fox JUMPS over the lazyDog","case":"camel"}'const res = await fetch("https://api.clean.tools/v1/convert_case", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"text":"the HTML5 quick_brown-fox JUMPS over the lazyDog","case":"camel"})
});
const data = await res.json();const res = await fetch("https://api.clean.tools/v1/convert_case", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"text":"the HTML5 quick_brown-fox JUMPS over the lazyDog","case":"camel"})
});
const data = await res.json();Convert camelCase to snake_case
This converter rewrites camelCase identifiers as snake_case. For example, myVariableName becomes my_variable_name. It splits on case boundaries and separators, so mixed input still converts cleanly. Paste one identifier or a whole list.
Everything runs in your browser. No cost, no signup, no tracking.
Frequently asked questions
Does it handle acronyms and numbers?
Yes. Runs of capitals and trailing numbers are treated as word boundaries, so identifiers like parseHTML5 split sensibly before converting to snake_case.
More developer presets
Use Clean.tools from your AI agent
This tool is also convert_case on the Clean.tools MCP server — the same engine, callable by your AI agent directly. No key, no signup: requests are processed in memory and request contents are never stored.
claude mcp add --scope user --transport http clean-tools https://mcp.clean.tools/mcpclaude mcp add --scope user --transport http clean-tools https://mcp.clean.tools/mcphttps://mcp.clean.tools/mcphttps://mcp.clean.tools/mcpEvery tool, the REST API, and setup for Cursor, Claude Desktop, VS Code & more →