Developer Tools

URL Decode

Decode percent-encoded selected text.

OfficialOn-device

Download action

What URL Decode does

Decodes a complete percent-encoded component as UTF-8 and reports malformed escape sequences instead of returning partial output.

CategoryDeveloper Tools
Action typeJavaScript
ResultReplace or copy text
InternetNot required

Action and outcome

URL Decode example
ActionOutcome
URL DecodeSelected text: push%20%2F%20pull%3Fpush / pull?

Use URL Decode

Follow these steps to decode percent-encoded selected text with ActionClip.

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

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.

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