Percent Encode text

Replaces any special characters in the input with percent-encoding that makes it function properly in URLs.

Matthew's Score
Total Actions
Built For

Shortcut Information

This shortcut gives basic Percent Encoding formatting to any text used as input by replacing characters like spaces or special characters like ampersands, parantheses, and more with the designated encoding strings as defined by web standards.

The shortcut uses a Dictionary of all the special characters and their correspoding strings—like %20 for spaces—and looks for each of them in the inputted text, replacing them one-by-one with the proper strings.

At the end, you should have a URL with text%20that%20looks%20like%20this.

Extra Details

Run Shortcut deep link
Open Shortcut deep link
AppleScript code
tell application “Shortcuts Events” run shortcut “Percent Encode text” end tell

More From This Folder

Change text case

Takes the input from the Share sheet or clipboard, lets you choose from UPPERCASE, lowercase, Capitalizing Every Word, swapping to Title Case, or swapping to Sentence case, and copies it to your clipboard.

Get shortcut »

You Might Also Like

Log caffeine

Asks you to choose the type of caffeinated drink (coffee, espresso, cappuccino, or a soda) and logs the caffeine content into the Health app. Also compares against the daily recommended limit of milligrams of caffeine.

Get shortcut »

Morning agenda

Speaks out the weather, reminders, and your calendar events, shows any notes created the day before, and then presents options for media to begin your day with.

Get shortcut »

Get way deeper into Shortcuts – become a member.