Text Editing & Formatting

Slugify

Turn selected text into a readable URL slug.

OfficialOn-device

What Slugify does

Slugify turns a phrase into clean, web-friendly text: it uses lowercase letters, removes accents, and joins words with hyphens.

Best forURLs, filenames, and identifiers
ResultReplaceable text
RunsLocally in ActionClip
SetupNone

Try the transformation

This browser preview follows the same transformation used by the Marketplace action.

Result

Use Slugify

Follow these steps to turn selected text into a readable URL slug with ActionClip.

  1. Select a heading, phrase, or label in an editable Mac app.
  2. Choose Slugify from ActionClip.
  3. Replace the selection or copy the transformed result.

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.

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, "");
}