Overview
What URL Decode does
Decodes a complete percent-encoded component as UTF-8 and reports malformed escape sequences instead of returning partial output.
| Category | Developer Tools |
|---|---|
| Action type | JavaScript |
| Result | Replace or copy text |
| Internet | Not required |
Example
Action and outcome
| Action | Outcome |
|---|---|
| URL DecodeSelected text: push%20%2F%20pull%3F | push / pull? |
Workflow
Use URL Decode
Follow these steps to decode percent-encoded selected text with ActionClip.
- Select the text you want to use.
- Choose URL Decode from ActionClip.
- Review the result, then replace the selection or copy the new text.
Before you add it
Requirements and privacy
- Before you start: No setup required.
- Your selected text: Runs locally in ActionClip’s JavaScript sandbox. Selected text does not leave your Mac.
Inspect before installing
Action configuration
The definition below is included so you can inspect how the action works before downloading it.
JavaScript definition
function run(selected_text) {
try {
return decodeURIComponent(selected_text);
} catch (error) {
throw new Error("Invalid percent-encoded text: " + error.message);
}
}