snake_case Converter
Converts a phrase into snake_case, suited to database column names and Python variables.
Runs in your browser. Nothing is sent anywhere.
When to use it
Use this to name MySQL or PostgreSQL columns, Python variables and functions, or column headers before importing a CSV, for example turning an order date heading into ngay_tao_don.
Output is always lowercase without accents, which suits PostgreSQL since it folds unquoted names to lowercase. For uppercase constants, use the CONSTANT_CASE page.
How to use
- Paste your text into the left box.
- The result appears instantly.
- Click Copy or Download.
Frequently asked questions
Is my text sent to a server?
No. The tool runs entirely in JavaScript in your browser, and the text you paste never leaves your device.
Why were the accents removed from my text?
Variable names, file names and config keys with Vietnamese accents easily cause errors in many programming languages and systems, so the tool removes the accents and turns đ into d.