Camel to Snake

Turn camelCase identifiers into snake_case.

Letters and digits only. XMLParser becomes xml_parser. Unlike Slugify this does not strip punctuation or insert hyphens. Inverse of Snake to Camel.

What Camel to Snake does

Letters and digits only. XMLParser becomes xml_parser. Unlike Slugify this does not strip punctuation or insert hyphens. Inverse of Snake to Camel.

This URL is only for Camel to Snake (camel to snake). Turn camelCase identifiers into snake_case. Other Text tools on Tool-You look similar in the chrome, so the job definition below is the part that belongs to Camel to Snake alone: Letters and digits only. XMLParser becomes xml_parser. Unlike Slugify this does not strip punctuation or insert hyphens. Inverse of Snake to Camel.

How to use Camel to Snake

  1. Keep this tab on Camel to Snake (/camel-to-snake). Pasting into the wrong Text tool (for example Snake to Camel) changes the job.
  2. Paste or type the input Camel to Snake expects. Path hint: camel to snake. Turn camelCase identifiers into snake_case.
  3. Apply the Camel to Snake action only. Slugify is a different transform (Turn text into a URL slug with separator and length options.). Letters and digits only. XMLParser becomes xml_parser. Unlike Slugify this does not strip punctuation or insert hyphens. Inverse of Snake to Camel.
  4. Copy the output of Camel to Snake if you need it elsewhere. Size/complexity still follows: Identifier tokens only. Punctuation copied. Max 200,000 characters.
  5. If the text job is actually Turn snake_case identifiers into camelCase., leave Camel to Snake and open Snake to Camel.

When not to use Camel to Snake

Skip Camel to Snake when a neighbor tool matches better — start with Snake to Camel or Slugify — or when the description already warns the job will fail. In the tool’s own words: Letters and digits only. XMLParser becomes xml_parser. Unlike Slugify this does not strip punctuation or insert hyphens. Inverse of Snake to Camel.

Questions about Camel to Snake

What does Camel to Snake do that other Text pages on this site do not?
Letters and digits only. XMLParser becomes xml_parser. Unlike Slugify this does not strip punctuation or insert hyphens. Inverse of Snake to Camel. Short version: Turn camelCase identifiers into snake_case.
Does Camel to Snake upload my file or text to Tool-You servers?
No. Camel to Snake runs in this browser tab. Files stay on the device. Limit note: Identifier tokens only. Punctuation copied. Max 200,000 characters.
Should I use Snake to Camel instead of Camel to Snake?
Use Camel to Snake when you need Turn camelCase identifiers into snake_case. Use Snake to Camel when you need Turn snake_case identifiers into camelCase. They share a category (Text) but not the same job.
What are the limits of Camel to Snake?
Identifier tokens only. Punctuation copied. Max 200,000 characters. Also: Letters and digits only. XMLParser becomes xml_parser. Unlike Slugify this does not strip punctuation or insert hyphens. Inverse of Snake to Camel.