URL Encoder
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Percent-encode text so it can be used safely in a URL or query string.
Result
Sample figures
Result
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Text: type or paste your values.
- Read the result: Result.
How this calculator works
Characters other than letters, digits and - _ . ! ~ * ( ) and the apostrophe are replaced by % and their UTF-8 bytes in hex (RFC 3986), as JavaScript encodeURIComponent does.
Worked example
| Text | price=10 & name=Ann Lee |
|---|
| Result | price%3D10%20%26%20name%3DAnn%20Lee |
|---|
Frequently asked questions
Why is a space written %20?
A space is not allowed in a URL; %20 is its encoded form.
Related calculators
Tech & MediaWord CounterCount the words, characters, sentences and paragraphs of any text, with its reading and speaking time.Tech & MediaCharacter CounterCount the characters of a text with and without spaces, plus words and sentences, for posts, ads and forms with a character limit.Tech & MediaUppercase ConverterConvert any text to UPPERCASE letters.Tech & MediaLowercase ConverterConvert any text to lowercase letters.Tech & MediaTitle Case ConverterCapitalize a title: main words capitalized, short articles, conjunctions and prepositions in lowercase except the first word.Tech & MediaSentence Case ConverterConvert text to sentence case: a capital letter at the start of each sentence, the rest in lowercase.Tech & MediaReverse Text GeneratorWrite any text backwards, character by character.Tech & MediaText to Binary ConverterConvert text to binary code: each character becomes its UTF-8 bytes, written as 8 bits.