Loading URL Encoder...
Please wait a moment

How to URL Encode Text and URLs - Step by Step Guide

Step 1

Input Your Text or URL

Paste your content into the input area. The encoder handles special characters, spaces, and symbols that need to be percent-encoded for web use, consistent with RFC 3986 and the WHATWG URL Standard.

Example: Try This Text with Special Characters

Copy and paste this example to see how it works:

Hello World! How are you?
https://example.com/search?q=json to table&category=tools
Special chars: @#$%^&*()+=[]{}|;:'",.<>?
Accents and emoji: café résumé naïve 😀
Step 2

See Automatic URL Encoding

The result appears as you type. The rules are exactly those of encodeURIComponent(): letters, digits and - _ . ! ~ * ' ( ) stay as they are, everything else becomes a %XX code. Note that the line breaks between the four example lines would become %0A if you paste all of them at once.

URL Encoded Output

Your text becomes this properly encoded format:

Hello%20World!%20How%20are%20you%3F
https%3A%2F%2Fexample.com%2Fsearch%3Fq%3Djson%20to%20table%26category%3Dtools
Special%20chars%3A%20%40%23%24%25%5E%26*()%2B%3D%5B%5D%7B%7D%7C%3B%3A'%22%2C.%3C%3E%3F
Accents%20and%20emoji%3A%20caf%C3%A9%20r%C3%A9sum%C3%A9%20na%C3%AFve%20%F0%9F%98%80
Step 3

Copy or Download Your Encoded Text

Copy the result or download it as url-encoded.txt. It is meant for GET requests, query parameters, and URLSearchParams workflows.

-
Creating safe query parameters for web APIs and search URLs
-
Encoding form data for HTTP requests
-
Preparing URLs with special characters for web applications
-
Encoding file names and paths for web servers

What is URL Encoding?

URL encoding is a method to encode special characters in URLs so they can be safely transmitted over the internet. This is part of the broader URI model used by browsers and servers.

For example, a space becomes %20, and an ampersand (&) becomes %26. This keeps URLs stable across clients and server frameworks.

Frequently Asked Questions

What is URL encoding used for?

It turns characters that have a meaning inside a URL (spaces, &, =, ?, # and so on) into %XX codes, so a value like "New York & Co" can travel inside a query string without being split or cut off.

Which characters does this encoder change?

Everything except letters, digits and - _ . ! ~ * ' ( ). That is exactly what JavaScript's encodeURIComponent() does. Non-ASCII text such as é or an emoji is first written as UTF-8 bytes, so é becomes %C3%A9 and 😀 becomes %F0%9F%98%80. Spaces become %20, never +.

Can I encode entire URLs or just parameters?

The encoder treats whatever you paste as one value, so a full URL comes out with its :, / and ? encoded too (https%3A%2F%2F...). That is what you want when the URL itself is a parameter, for example ?redirect=... If you only need the spaces and odd characters fixed while keeping the URL working, encode each query value separately instead of the whole address.

Is URL encoding the same as HTML encoding?

No. URL encoding uses percent codes like %3C, while HTML encoding uses entities like &lt;. Text that goes into a URL needs the first, text that goes into a web page needs the second, and one does not replace the other.

What happens to line breaks, spaces and numbers?

Nothing is trimmed or rewritten: a line break becomes %0A (or %0D%0A for Windows line endings), every space becomes %20, and numbers such as 8901240544102066246, 00501 or 14.50 keep every digit, since digits never need encoding.

Is this URL encoder free, and is my text sent anywhere?

It is free and needs no sign-up. The encoding runs in your browser, so the text you type or upload is not sent to our server. Very large files (many megabytes) can make the editor slow.

Need to go the other way? The URL Decoder turns %XX codes back into readable text, and the Query String Builder encodes several key/value pairs at once. The rules come from RFC 3986 section 2.2.