Skip to tool

Apex Snake case Online

Convert input to snake_case.

The output updates as you type. The tool processes input in your browser.

Worked example

Snake case separates normalized words with underscores. Check identifier collisions when renaming a batch.

Sample input
manuals plus docs
Sample output
manuals_plus_docs

Using this operation in Apex

The interactive result uses JavaScript. Apex text utilities use the System namespace. Consider Salesforce transaction limits when applying an expensive transformation to many records.

Apex reference