snake_case converter
Turn phrases, camelCase or kebab-case names into snake_case: lower case words joined by underscores, one per line.
Set up for this job. It runs on Case converter, where every option is there to change.
Questions
Can it turn camelCase into snake_case?
Yes. Capital humps mark word breaks, so userAccountId becomes user_account_id, and a capital after a digit starts a new word too, so base64Encode becomes base64_encode.
What happens to punctuation and accents?
Anything that is not a letter or digit splits words and is dropped. Accented letters such as é are kept as they are.
What if I need capitals, like USER_ID?
That style is CONSTANT_CASE. Pick it on the same tool, or open the CONSTANT_CASE converter.