URL encoder
Try URL Encoder
Loading calculator. If this message stays visible, enable JavaScript and reload.
Your result
The URL encoder percent-encodes pasted text as one URL component. Enter a value and choose Calculate / Run. For example, hello world becomes hello%20world, and A&B becomes A%26B. MoneyOr uses the browser's encodeURIComponent operation, so separators such as an ampersand can be represented as data within a component.
Use this for a specific value that an interface expects to be component-encoded. It does not build a complete address or validate a website. Encoding an entire URL also encodes its structural separators, which is appropriate only when that URL is itself the value of another component. Keep the intended destination and its format requirements in view.
Encoding the right part of a URL
What does the URL encoder actually encode?
The URL encoder takes the supplied text as a single value and applies encodeURIComponent. Characters that the operation escapes are represented with percent signs and hexadecimal byte values. Non-ASCII characters are represented through their UTF-8 bytes. Ordinary letters and digits remain readable, while many separators and punctuation characters become escapes.
It does not inspect the text and decide which parts are a host, path, query or fragment. The same rule applies to the entire field. A pasted complete address is therefore treated as component data, not as a navigable URL whose structure should remain intact. Make that distinction before choosing what to paste.
A common use is a query value containing an ampersand. If the value is A&B, encoding it produces A%26B. The ampersand is represented within the value rather than being left as a raw separator. The receiving application still needs to interpret and decode the component according to its own interface.
The result is text, not a shortened link or a redirect. It does not change where a website is hosted, create a new page or make an invalid address work. Use the URL parser when you first need to inspect the structure of an address.
How do I prepare a value and check its output?
- Identify the individual component value required by the receiving interface.
- Keep the original unencoded value.
- Paste it into Text, without unrelated labels or separators.
- Choose Calculate / Run.
- Inspect the escaped result and test it in the intended context.
- Use the URL decoder for a compatible round-trip text check if needed.
Check the field's beginning and end for accidental whitespace. The encoder does not trim the source. A leading space becomes an encoded space just as an intentional space in the middle does. If the receiving system requires a trimmed value, make that edit deliberately before encoding and retain the original for comparison.
Do not include a parameter name and equals sign if the interface only asks for the parameter value. Encoding q=blue paper treats the equals sign as data. The appropriate construction depends on the interface: parameter names, structural separators and values each have a role, and this form cannot infer the arrangement you intended.
Use a synthetic example containing the same punctuation as the real value. A test with only letters cannot reveal how ampersands, plus signs or percent signs will behave. Test non-ASCII text too when your actual data contains it. That gives you a more useful comparison without exposing private query values.
Which examples show spaces, punctuation and Unicode?
These inputs and expected outputs were checked against MoneyOr's engine. Read each row as one complete component value, rather than as a full URL that should be opened directly. The examples show how a character's context determines whether encoding it is useful.
| Input | Encoded output | What changes |
|---|---|---|
hello world | hello%20world | The ordinary space becomes %20. |
A&B=C? | A%26B%3DC%3F | Component separators are escaped as data. |
a+b | a%2Bb | The literal plus sign becomes %2B. |
100% | 100%25 | The percent sign itself is encoded. |
café | caf%C3%A9 | The accented letter uses two UTF-8 byte escapes. |
😀 | %F0%9F%98%80 | The emoji uses four byte escapes. |
A stored newline is data too. The checked sequence A, line feed, B becomes A%0AB. This does not tell the tool to encode two independent records. If you paste several lines, the entire passage is processed as one value containing those stored breaks.
The encoding does not spell-check or translate text. A typo remains represented by its own bytes. Inspect the original value as well as the output, because an exact technical transformation can faithfully encode the wrong phrase or an unintended copied character.
Should I encode a complete URL or only a component?
Usually you should identify the specific value that requires encoding. A complete URL contains structural characters that separate its scheme, authority, path, query and fragment. Component encoding does not preserve those roles. Applying it indiscriminately to an address can produce a string that is no longer directly usable in the way you intended.
The checked input https://example.com/a?x=1 becomes https%3A%2F%2Fexample.com%2Fa%3Fx%3D1. That can be appropriate when a complete address must be embedded as the value of another parameter. It is not a repaired or shortened version of the original address.
Consider a field that expects a destination address as data. The destination's own question mark and equals sign belong to that value, while the outer address has its own parameter separators. Encoding the destination can keep those layers distinct. The outer system still decides whether that destination is permitted. Representation handling does not replace an allowlist or another application-specific destination check.
Likewise, a path containing several segments has separators between them. Encoding the full path as one component encodes its slashes. If you are constructing a path, follow the receiving system's rules for individual segments and separators. This form provides a transformation; it does not assemble or validate a routing scheme.
For campaign addresses, the UTM builder has a separate purpose. Use a construction tool when you need its defined fields and output, rather than manually encoding an entire address and assuming it has created correctly named parameters. Check the completed address before publishing it.
Why are spaces %20 rather than plus signs?
The implemented operation represents an ordinary space as %20. It encodes a literal plus sign as %2B. This keeps the two inputs distinct. Do not replace one with the other casually, because a receiving format may assign a special meaning to the plus character.
HTML form-style encoding can use a plus sign for a space. That is a separate convention from the component transformation here. The form has no form-encoding switch. Confirm the required representation from the receiving interface rather than copying a value from a different workflow and assuming all URL-related encodings are identical.
Some punctuation also remains unchanged under encodeURIComponent. The tested sequence -_.!~*'() is left as supplied. The tool therefore does not claim to escape every punctuation character under every possible standard. A receiver with stricter rules may require a different, explicitly defined encoder.
MDN's encodeURIComponent reference, checked in 2026, documents the operation and distinguishes it from complete-URI encoding. MoneyOr follows that browser operation rather than offering a menu of interchangeable encoding standards.
How can I avoid double encoding and accidental changes?
Start from the original unencoded value whenever the interface requires one encoding layer. An existing percent sign is treated as an input character. The checked text already%20encoded becomes already%2520encoded, because the existing percent sign becomes %25. The tool does not detect and skip an earlier encoding layer.
That second layer can be intentional when an already encoded string is itself data inside another component. It can also be a mistake. Decide from the surrounding format, not from the mere presence of percent signs. Save both source and result so you can identify which layer was added at each step.
A literal percent sequence can also be the intended text. If the value is a written example containing the characters %20, preserving that literal notation requires representing the percent sign when it enters another encoded component. Automatically decoding it first would change the value into one containing a space. Decide whether the source is already encoded data or prose that happens to contain encoding notation.
Do not repeatedly encode until the result looks more “URL-like.” Each pass can encode the percent signs introduced by the previous pass. A syntactically transformed string does not prove that the receiving application expects those layers. Test the exact interface with a non-sensitive example before using real data.
HTML escaping is another independent layer. The HTML encoder addresses a different context, such as representing special characters in HTML-related text. The Base64 encoder produces another representation again. Use each only where the actual format requires it, with the order documented.
What are the limits for validation, security and unusual text?
Encoding is not validation. The tool does not verify a domain, check whether a resource exists or establish that a value is allowed by a server. An encoded query can still contain an invalid identifier or unwanted application data. The receiving system must apply its own validation rules.
Encoding is also not encryption or redaction. Percent escapes are readable with a compatible decoder, and private information remains private information after transformation. Do not publish a token, personal record or sensitive query just because spaces and punctuation have been replaced by escapes.
The browser operation can reject malformed JavaScript text containing a lone surrogate. That is a text-representation issue, not an invitation to guess a replacement character. For unusual input copied from a broken source, inspect the original encoding and obtain an intact value. The tool does not repair invalid source text automatically.
No fixed maximum input length is published for this form. Browser memory and practical destination limits still apply. A large output may be unsuitable for a particular address field even if encoding succeeds. Check the destination's documented requirements rather than treating a successful run as approval for an arbitrarily long URL.
When an integration fails, record the original value, the exact encoded output and the receiving field's requirement. That separates an encoding mismatch from an unrelated validation failure. Change one stage at a time and keep the successful small sample alongside the actual test.
Check the final stored value after submission as well. A preview can show a decoded label while the underlying field contains a differently encoded representation.
How do the result controls and browser processing work?
This form is available without a tool account or fee in a modern desktop or mobile browser. A long encoded line may wrap visually on a small screen. That wrapping does not necessarily insert stored line breaks, so check the copied value rather than counting display rows.
Copy result includes the displayed output and any result details. Download CSV creates a report containing the result, not a browser bookmark or redirect. Save the first encoded value as a baseline if you want to compare it with a second run. Reset restores the initial form and removes the result, so keep the unencoded text separately.
The component encoding operation runs in your browser. Website delivery, analytics and contact handling are separate and described in the MoneyOr privacy policy. Use a harmless test value when checking a confidential workflow. The operation transforms representation and does not anonymise the underlying content.
URL encoder FAQs
Will it make a long address shorter?
No. Percent encoding can increase the displayed length because an escaped byte needs a percent sign and hexadecimal digits. It is a representation operation, not a link-shortening service. Use it because the destination requires encoded component data, rather than as a method of reducing address length.
Does it create a search-friendly page slug?
No. It retains the supplied text's meaning as encoded data rather than rewriting it into a descriptive slug. The SEO slug generator has a different text-normalisation purpose. A tool result alone does not create a page or change WordPress permalinks.
Can I upload a file or load a remote address?
The form accepts pasted text and does not provide file-upload or remote-loading controls. A pasted filename is just text, and a pasted address is encoded as text. The operation does not retrieve the contents of that file or website.
Does encoding change uppercase and lowercase letters?
Ordinary letters keep their case. The operation is not a case converter and does not normalise identifiers according to a server's rules. Check the original spelling and case before encoding, especially when the receiving application treats different capitalisation as different data.
Can it correct a broken link automatically?
No. A missing page, incorrect domain or wrong path needs its own diagnosis. Encoding an address cannot make that resource exist. Inspect the URL's components and verify the intended destination before changing its representation, rather than treating every broken link as an encoding problem.
Should I encode a value that a URL library already handles?
Check that library's interface. Some methods expect raw values and apply encoding themselves; supplying already encoded text can add another layer. Follow the documented contract and test a sample containing spaces and a percent sign. Do not assume manual pre-encoding is necessary in every workflow.
Method reference
Reviewed on 14 November 2026: MDN Web Docs, encodeURIComponent(). The worked examples were checked against MoneyOr's actual operation. Encode the intended component once, unless the surrounding format explicitly requires another layer.