snake_case to kebab-case converter

Convert snake_case names to lowercase kebab-case, line by line or inside longer text.

Loading the tool…

Processing and privacy: The result is calculated inside your browser and your data is not sent to any server.

How to use it

  1. Enter snake_case names (one per line or inside text).
  2. The result appears straight away and updates as you edit.
  3. Copy the result, or copy a link that keeps the same values to share it.

How it is calculated

Each snake_case name is split into words at the underscores, and at any capital that follows a lowercase letter. The words are then lowercased and joined with hyphens (-). Symbols and spaces around the names are left as they are. Example: user_first_name becomes user-first-name.

Example

Result: kebab-case result: user-first-name order-total-amount created-at; Names processed: 3.

user_first_name
order_total_amount
created_at
user-first-name
order-total-amount
created-at

Limits and caveats

  • Every word becomes lowercase, so acronyms such as API do not keep their capitals.
  • Every word in the pasted text is converted, including keywords and library names, so review the result before pasting it into code.

Questions about this tool

Why are hyphens preferred in URLs?

Google recommends hyphens (-) rather than underscores (_) to separate words in URLs, so names like product_details are turned into product-details.

Does the file extension change?

No, the dot is not part of the name, so annual_report_2025.pdf becomes annual-report-2025.pdf.

What if the name is in capitals, like MAX_SIZE?

It is lowercased, so it becomes max-size.