URL Encode – Online URL Encoder (Percent-Encoding) | WordTweek
Free online text tool

URL Encode

This URL encoder converts unsafe and non-ASCII characters into a URL-safe format that browsers and servers accept. It is also known as percent-encoding because it uses the percent sign. Paste your link, and copy the encoded result. It is free and runs in your browser.

URL encode example

Before

https://www.google.com/search?q=test search

After

https%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Dtest%20search

How to URL encode a link

  1. Paste your link. Type, paste or import a .txt file with the URL or text.
  2. Choose options. Keep the URL structure, or use + for spaces if needed.
  3. Copy the result. The encoded text appears instantly. Press Copy result.

Common URL encoded characters

CharacterEncoded
(space)%20
!!
#%23
$%24
&%26
/%2F
:%3A
=%3D
?%3F
@%40
é%C3%A9

Letters, digits and - _ . ! ~ * ' ( ) are never encoded.

When to use URL encoding

Query strings

Encode values placed after the ? in a link so special characters do not break the URL.

Links with spaces or symbols

Make file names and titles safe to use inside a link.

Non-English text

Encode accented letters, other scripts and emoji so every browser reads them correctly.

Frequently asked questions

What is URL encoding?

URL encoding, also called percent-encoding, replaces unsafe or non-ASCII characters in a URL with a percent sign followed by two hexadecimal digits. For example, a space becomes %20.

How do I encode a URL online?

Paste your link or text into the input box. The encoded result appears instantly in the result box. Press Copy result to use it.

Why do URLs need to be encoded?

URLs can only safely contain a limited set of ASCII characters. Spaces, symbols and non-English letters must be encoded so browsers and servers read the link correctly.

What is the difference between encoding a full URL and a component?

By default every special character is encoded, including : / ? = and &, which suits a value placed inside a query string. Tick Keep URL structure to leave those characters alone and encode only unsafe ones such as spaces, which suits a whole link.

Should a space be %20 or +?

%20 is valid everywhere in a URL. A plus sign for a space is used only in query strings submitted from HTML forms. Tick Use + for spaces if you need that form style.

Which characters are never encoded?

Letters A to Z, digits 0 to 9 and the characters - _ . ! ~ * ' ( ) are left as they are.

Does it support emoji and non-English text?

Yes. Text is converted to UTF-8 first, so characters such as é, 日本 or an emoji are encoded correctly, for example é becomes %C3%A9.

Is my text uploaded anywhere?

No. The tool runs in your browser, so your text stays on your device. It is free and needs no account.

Share this tool

Bookmark this page: press Ctrl+D (Windows) or Cmd+D (Mac).

Last updated: November 2026 · Free · No sign-up · Runs in your browser

Copied!