All tools Slug Generator ● Live Data Tools

How Slug Generator works

  1. Type or paste your title or phrase into the input box.
  2. View the kebab-case, snake_case, and dot.case outputs generated simultaneously.
  3. Copy whichever variant you need with its individual copy button.
  4. Use the slug in your URL, file name, or package identifier.
  • Generate a URL slug from a blog post or article title.
  • Create a file name from a document title using snake_case.
  • Convert a project name into a dot.case package identifier.
  • Clean up an accented or special-character title for use in a URL.
  • Standardize naming conventions across a list of titles.

Slug generation happens entirely in your browser. Your text is never sent to a server.

  • Output is always lowercase — case-preserving slugs aren't generated.
  • Non-Latin scripts (e.g. Chinese, Arabic) may not have a meaningful ASCII transliteration.
  • Numbers are preserved, but very long titles produce correspondingly long slugs.

Slug Generator

Slug Generator turns titles, headings, and arbitrary text into clean, URL-safe identifiers. It normalizes Unicode characters, removes special characters, and outputs three variants: kebab-case (for URLs), snake_case (for file names and variables), and dot.case (for package names).

Slug Generator Runs locally

Input text

Converted variants

URL Slug (kebab-case)hello-world-this-is-a-test-string
snake_casehello_world_this_is_a_test_string
dot.casehello.world.this.is.a.test.string
Guide

How to use

  1. Type or paste your title or phrase into the input box.

  2. View the kebab-case, snake_case, and dot.case outputs generated simultaneously.

  3. Copy whichever variant you need with its individual copy button.

  4. Use the slug in your URL, file name, or package identifier.

Scenarios

Use cases

  • Generate a URL slug from a blog post or article title.

  • Create a file name from a document title using snake_case.

  • Convert a project name into a dot.case package identifier.

  • Clean up an accented or special-character title for use in a URL.

  • Standardize naming conventions across a list of titles.

Good to know

Limitations & Privacy

Private by design

Slug generation happens entirely in your browser. Your text is never sent to a server.

  • Output is always lowercase — case-preserving slugs aren't generated.

  • Non-Latin scripts (e.g. Chinese, Arabic) may not have a meaningful ASCII transliteration.

  • Numbers are preserved, but very long titles produce correspondingly long slugs.

FAQ

Frequently asked questions

How are accented characters handled?

The tool normalizes Unicode using NFD decomposition and strips combining diacritical marks, so 'café' becomes 'cafe' in the output.

What characters are stripped?

All characters that aren't lowercase ASCII letters, digits, or hyphens (or underscores/dots for the other variants) are removed after normalization. Numbers are preserved.

What's the difference between the kebab-case, snake_case, and dot.case outputs?

Kebab-case uses hyphens ('my-post-title') and is standard for URL slugs. Snake_case uses underscores ('my_post_title') for file names and variables. Dot.case uses periods ('my.post.title') for package or namespace names.

Are spaces converted to separators?

Yes — spaces and most punctuation are converted to the appropriate separator (hyphen, underscore, or dot) for each output variant.

What happens to multiple consecutive spaces or special characters?

Consecutive separators are collapsed into a single one, so 'Hello World!!' becomes 'hello-world', not 'hello---world'.

Is the output always lowercase?

Yes — all three output variants are lowercased, which is the convention for URL slugs and most file naming standards.

Can I use this for blog post URLs?

Yes — paste your post title and use the kebab-case output as the URL slug, which is the most common format for SEO-friendly URLs.