← Developer presets

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 Code
claude mcp add --transport http clean-tools https://mcp.clean.tools/mcp
Claude Desktop (mcpServers)
{"mcpServers":{"clean-tools":{"command":"npx","args":["-y","@clean-tools/mcp"]}}}
Cursor
https://mcp.clean.tools/mcp

Or call it over plain HTTP from any script. Same engine, JSON in and JSON out, no key:

curl
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"}'
JavaScript
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

View all tools

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 Code
claude mcp add --scope user --transport http clean-tools https://mcp.clean.tools/mcp
Any MCP client (streamable HTTP, authless)
https://mcp.clean.tools/mcp

Every tool, the REST API, and setup for Cursor, Claude Desktop, VS Code & more →