文本转snake_case

将文本转换为snake_case格式。

文本工具

如何使用 文本转snake_case

  1. 1Paste your text in any format
  2. 2snake_case is generated instantly
  3. 3Copy the result to use in your code

关于 文本转snake_case

snake_case Converter transforms any text into the snake_case format used in Python, Ruby, database column names, and many backend languages. Words are lowercased and joined with underscores, with all other separators removed.

Input can be plain text, camelCase, PascalCase, or kebab-case — the converter handles all input formats.

常见问题

What is snake_case used for?

snake_case is the standard naming convention in Python, Ruby, Rust, SQL databases, and many configuration files.