# Convert Text to a URL Slug

> Generate URL slugs from any text online. Free slugify tool that lowercases, strips accents and symbols, and joins words with hyphens.

A slug is the URL-safe version of a title: lowercase, accents stripped, symbols removed, words joined with hyphens. This converter slugifies any text — blog titles, product names, headings — into clean, SEO-friendly URL segments, handling accented characters like é and ü correctly.

## Example: Text → Slug

Input:
```
Hello World!
Café au Lait & Co.
10 Tips for Faster Builds
```

Output:
```
hello-world
cafe-au-lait-co
10-tips-for-faster-builds
```

## How to convert Text to Slug

1. Lowercase the text and normalize accented characters to their plain equivalents (é → e).
2. Replace every run of spaces, punctuation, and symbols with a single hyphen.
3. Trim leading and trailing hyphens.

## FAQ

### Why hyphens instead of underscores in URLs?

Google has long recommended hyphens because they are treated as word separators, while underscores historically were not. Hyphenated slugs are also easier to read in a link preview.

### What happens to accented characters?

They are transliterated to their base letter — café becomes cafe. This keeps slugs ASCII-only, which avoids percent-encoding in shared links.

## Related converters

- [camelCase → kebab-case](https://www.devkult.com/convert/camel-to-kebab.md)
- [kebab-case → snake_case](https://www.devkult.com/convert/kebab-to-snake.md)
- [Text → Title Case](https://www.devkult.com/convert/text-to-title-case.md)

Open the interactive converter: https://www.devkult.com/convert/text-to-slug