Pardot Knowledge Base

Encoding URLs in Emails

Last Updated: Apr 26, 2016 | Print this Article
Email links are rewritten by Pardot and are uniquely tracked to their recipient. To ensure a proper link rewrite, you must not use spaces or special characters in your URLs. Anything included in the basic structure of the URL is ok to leave un-encoded, but anything after the basic URL structure (like a file name of a PDF) must be encoded.

Pardot will scan for spaces and apostrophes in <a href=""> tags and automatically replace them with their encoded equivalents (%20 and %27), and trim out newlines. Note that this only works for well formatted links in <a href=""> tags in HTML content. This cleaning only happens when an email is autosaved or you advance to the next tab in Email Flow. HTML content imported to text will also be cleaned.

Even though Pardot will automatically encode spaces and apostrophes for you (only in well formatted links in <a href=""> tags), all other special characters in URLs must be encoded manually. You can use the following chart or this URL encoding tool.


Here are some common characters that require encoding.
ASCII Character URL-Encoding
space %20
! %21
" %22
# %23
$ %24
% %25
& %26
' %27
( %28
) %29
* %2A
+ %2B
, %2C
- %2D
. %2E
/ %2F

Need more? Start a conversation with other Pardot users in our Success Community