← All Tools

Camel Snake Converter🔒 100% local

Convert between camelCase and snake_case naming conventions.

Input

Related Tools

Case ConverterSlug GeneratorSlug Case

Converts one identifier between camelCase and snake_case using a direction dropdown that doubles as a swap button. The camel-to-snake pass inserts an underscore before every capital letter and lowercases the rest; the snake-to-camel pass lowercases everything, splits on underscores and capitalises each part after the first. The transformation happens in the page.

How to use it

  1. Pick the direction from the dropdown, or press the arrow to reverse it.
  2. Paste the identifier into the input box.
  3. Press Convert, then copy the result.

Worked example

getUserProfileById (camel to snake)becomesget_user_profile_by_id
user_profile_id (snake to camel)becomesuserProfileId
HTTPServer (camel to snake)becomesh_t_t_p_server

The rule fires per capital letter, so acronyms lose their grouping.

When to use it

What it does not do