Text

Case to SnakeCase

Free and instant online tool to convert normal text, strings, or variables into SnakeCase.

Input Text
snake-case Result
100% Secure
Fast Conversion
High Accuracy

Free Online SnakeCase Converter

Our string formatting tool instantly transforms your normal text, sentences, or code variables into SnakeCase. Simply paste your content, and the tool will automatically handle spaces and capitalization.

How to convert

1. Paste Case text

Paste or type your Case content into the input area.

2. Conversion Process

Our tool automatically converts your text to SnakeCase format with the best possible settings.

3. Copy SnakeCase

The conversion is complete. You can now copy the result directly to your clipboard.

Frequently Asked Questions

Conversion Specs

InputCase
OutputSnakeCase
SafetyHTTPS / Auto-delete
Price
Free

Using code

snakeCase

Converts a given string to snake_case format by handling acronyms, camelCase, letter-to-number and number-to-letter boundaries, and replacing common delimiters (spaces, hyphens, dots) with underscores. The result is trimmed of leading/trailing underscores and converted to lowercase.

Parameters

NameTypeDescription
textstringThe string to convert.

Returns

stringThe snake cased string.
npm i @razomy/string-case
import {snakeCase} from '@razomy/string-case';

snakeCase('fooBar');
// => foo_bar

snakeCase('Foo Bar');
// => foo_bar

snakeCase('FOO-BAR');
// => foo_bar