Skip to main content

URL encoder & decoder

Encode text for URL components and decode percent-encoded text
This tool performs URL percent encoding, not Punycode. For Punycode, use the Punycode converter.

URL encode and decode text

Text:

example:hello world & more

Percent encoding:

example:hello%20world%20%26%20more

How to use the URL encoder?

  • Enter text on the left side to URL encode it, or enter percent-encoded text on the right side to decode it
  • Spaces become %20; non-ASCII characters become percent-encoded UTF-8 bytes.
  • The tool uses encodeURIComponent and decodeURIComponent on the whole input. It leaves letters, digits, -, ., _, ~, !, ', (, ), and * unchanged when encoding; the last five are reserved in RFC 3986.

Reading the byte escapes in a URL

Percent-encoding, often called URL encoding, writes a byte as % followed by two hexadecimal digits — the %XX form defined in RFC 3986. A space becomes %20 and an ampersand used as data can become %26; which characters need escaping depends on the URL component. Internationalized URLs use UTF-8 bytes for non-ASCII text before percent-encoding, while internationalized domain names use IDNA and Punycode for the host labels.

Related

Check out our Apify actor for web scraping.

Powered by Trafilatura Core, an open-source content-extraction engine that pulls the main content from web pages while filtering out boilerplate like navigation, ads, and sidebars.

Ideal for building RAG pipelines, training datasets, or content analysis at scale.


Did you know? Apify offers a free tier — you get $5 to use monthly.


Apify also has a super generous Creator plan (though you can run only your own actors) that costs just $1/month (billed $6 semi-annually) and includes a one-time $500 platform credit for your first 6 months — with up to 32 GB RAM and 32 concurrent actor runs.