# Slugify Guide

Turn any text into a clean URL slug.

- Tool: https://ilham.dev/tools/slugify/
- Guide URL: https://ilham.dev/guides/slugify/
- Tool guides index: https://ilham.dev/guides/tools/
- Broader guide: Writing and Publishing Text for the Web (https://ilham.dev/guides/writing-for-the-web/)

## What it does

Turn any text into a URL-safe slug: lowercased, accents folded to ASCII, punctuation dropped and words joined with a separator you choose. Non-Latin scripts are transliterated where that is possible.

## Use the tool

Open https://ilham.dev/tools/slugify/, add the input the tool asks for, run it, and check the output before using it elsewhere.

## Input and output

- Input: text.
- Output: text.
- Category: Web.

## Privacy and processing
Processing happens locally in your browser. This tool does not upload the input to ilham.dev.

## Questions

### Why should a slug be ASCII?

Percent-encoded characters are hard to read, easy to mangle when copied and awkward in analytics. A plain ASCII slug survives every tool it passes through.

### Should I use dashes or underscores?

Dashes. Search engines treat a hyphen as a word separator and an underscore as joining two words, so my-post reads as two words and my_post as one.