---
title: "URL Encode action for ActionClip"
canonical_url: "https://actionclip.app/actions/url-encode"
document_type: "standalone_action"
official: true
action_count: 1
catalog_schema_version: 1
catalog_revision: "2026-08-21.1"
catalog_published_at: "2026-08-20T18:50:00Z"
---

# URL Encode action for ActionClip

Percent-encode selected text as a URL component.

## What it does

Uses JavaScript’s encodeURIComponent behavior so reserved query and path characters cannot change URL structure.

## Action details

| Field | Value |
| --- | --- |
| Category | Developer Tools |
| Action type | JavaScript |
| Result | Replace or copy text |
| Internet | Not required |

## Action and outcome

| Action | Outcome |
| --- | --- |
| **URL Encode** — Selected text: push / pull? | push%20%2F%20pull%3F |

## How to percent-encode selected text as a URL component with ActionClip

1. Select the text you want to use.
2. Choose **URL Encode** from ActionClip.
3. Review the result, then replace the selection or copy the new text.

## Requirements

No setup required.

## Privacy

Runs locally in ActionClip’s JavaScript sandbox. Selected text does not leave your Mac.

## Action configuration

````javascript
function run(selected_text) {
  return encodeURIComponent(selected_text);
}
````

## Links

- [HTML listing](https://actionclip.app/actions/url-encode)
- [Download action definition](https://actionclip.app/actions/url-encode.actionclip)
- [Browse Developer Tools actions](https://actionclip.app/marketplace#marketplace-developerTools)
- [All Marketplace listings](https://actionclip.app/marketplace)
