Overview
What Slugify does
Slugify turns a phrase into clean, web-friendly text: it uses lowercase letters, removes accents, and joins words with hyphens.
| Best for | URLs, filenames, and identifiers |
|---|---|
| Result | Replaceable text |
| Runs | Locally in ActionClip |
| Setup | None |
Interactive example
Try the transformation
This browser preview follows the same transformation used by the Marketplace action.
Result
Workflow
Use Slugify
Follow these steps to turn selected text into a readable URL slug with ActionClip.
- Select a heading, phrase, or label in an editable Mac app.
- Choose Slugify from ActionClip.
- Replace the selection or copy the transformed result.
Before you add it
Requirements and privacy
- Setup: No setup is required.
- Your selected text: The action runs locally in ActionClip and does not send your text anywhere.
No account, API key, network request, or third-party app is required.
Inspect before installing
Action configuration
The source is visible so you can understand the exact transformation before adding it.
JavaScript source
function run(selected_text) {
return selected_text
.normalize("NFKD")
.replace(/[\u0300-\u036f]/g, "")
.toLowerCase()
.replace(/\./g, "-dot-")
.replace(/\+/g, "-plus-")
.replace(/&/g, "-and-")
.replace(/@/g, "-at-")
.replace(/_/g, "-")
.replace(/[^a-z0-9\s-]+/g, "")
.replace(/[\s-]+/g, "-")
.replace(/^-+|-+$/g, "");
}