Percent (en|de)coding URIs in variables, tokens, text & clipboard

A set of four custom actions for use with text, tokens, variables or clipboard.

Encode URI (4.8 KB)
Decode URI (4.6 KB)

Encode (4.5 KB)
Decode (4.4 KB)

Each of these actions wraps one of the 4 standard JavaScript functions for percent-encoding and decoding URIs:



The Component versions encode and decode more.

( encodeURI() encodes only the minimum required to create a well-formed and standards-compliant URI, and leaves protocol prefixes like http:// unencoded).


  • Yosemite
    • The underlying scripts are written in Javascript for Applications


  • Drag the .zip file you require onto the Keyboard Maestro icon in the OS X toolbar.
  • (if updating a previous version of the action, first manually remove the previous copy from the custom actions folder)
    • ~/Library/Application Support/Keyboard Maestro/Keyboard Maestro Actions
1 Like

How can these be installed? Dragging the zip file to the menubar or the dock icon does nothing, and the files are grayed out when selecting both Import actions on the File menu. These would be very useful actions (thanks ComplexPoint for publishing them)

I think these may now be redundant – you should (in KM 7, for example) be able to use a Filter action, choosing one of the encode or decode functions from the with section of the action:

1 Like