SumReflex Math tools
🔗

Utilities

URL Encode / Decode

Encode URL text or decode percent-encoded characters for paths, query strings, and components.

Preparing URL Encode / Decode
Please wait ...
Input
Choose encode or decode mode, then paste the text or encoded string you want to convert.
Input summary
Your calculator summary shows here.

Percent encoding

Encoding URL text by protecting reserved characters and query values

URL encoding makes text safe inside web addresses

URLs use certain characters for structure. Slashes separate paths, question marks start query strings, ampersands separate parameters, and equals signs connect names with values. URL encoding replaces characters that need protection with percent codes so the address can be read correctly by browsers and servers.

The calculator helps encode full URLs, encode individual components, or decode percent-encoded text back into readable form.

A full URL and a component are not encoded the same way

Encoding an entire URL should preserve structural characters that already define the address. Encoding a query value should protect characters inside that value, including spaces, ampersands, and percent signs. Choosing the wrong mode can either break the URL structure or leave unsafe characters unprotected.

Use component encoding for a value that will be inserted into a parameter. Use full URL encoding only when the structure should remain visible.

Spaces can appear as percent twenty or plus

A space is often written as %20. In form-style query encoding, a space may appear as a plus sign. Both patterns are common, but they belong to different contexts. The receiving system decides how the encoded text should be interpreted.

If a decoded value shows plus signs instead of spaces, check whether the original context was a query string or a literal plus character.

Reserved characters carry URL meaning

Characters such as ?, &, =, /, :, #, and % can affect how a URL is parsed. If one of those characters belongs inside a value rather than the URL structure, it should usually be encoded. Otherwise a server may split the value at the wrong place.

This is especially common with search queries, redirect URLs, names, file paths, and text that contains punctuation.

Decoding twice can damage the value

A value should normally be decoded only as many times as it was encoded. Decoding twice can turn a protected percent sequence into an active character and change the meaning of the URL. Encoding twice can leave visible percent codes in the final page or API request.

If a value looks partly decoded, inspect the source before applying another pass.

Unicode characters become encoded byte sequences

Characters outside basic ASCII are usually converted through UTF-8 bytes and then percent-encoded. That is why one visible character can become several percent codes. This is normal for names, symbols, non-Latin scripts, and emojis.

If decoded text looks broken, the issue may be character encoding rather than URL encoding itself.

Base64 is a different transport encoding

Base64 rewrites data into a text-safe alphabet, while URL encoding protects characters inside URLs. A value may sometimes need both steps, but they solve different problems. The Base64 Encode Decode calculator handles that separate format.

URLs with encoded values should still be readable structurally

A well-built URL usually keeps scheme, host, path separators, and query separators recognizable while encoding only the parts that need protection. If the entire URL turns into a long string of percent codes, it may have been encoded at the wrong level.

When debugging, identify the path, query parameter names, and query values separately before deciding what to encode.

Encoded text is not private

URL encoding is not encryption. Anyone can decode it. Sensitive tokens, passwords, personal details, or private links should not be treated as safe merely because the text contains percent codes.

Use proper security controls for secrets. Use URL encoding for formatting and transport compatibility.

Keep the decoded result with the original context

A decoded value can be misleading without knowing whether it came from a path, query string, fragment, or form submission. The same character can have different meaning in different URL positions.

Before pasting a decoded or encoded result into production code, test it in the exact place where it will be used.

Percent signs need special care

A percent sign starts an encoded sequence. If a literal percent sign belongs in a value, it often needs to be encoded as %25. Otherwise the next two characters may be read as part of an encoding sequence.

This matters for discount text, analytics tags, formulas, and values copied from already encoded sources.

Fragments are handled after the hash mark

Text after a # symbol is a fragment. Browsers use it for page positions or client-side state, and it is often not sent to the server in the same way as path and query data. Encoding inside a fragment should protect the fragment value without confusing it with query parameters.

When troubleshooting a link, separate the path, query string, and fragment before deciding where the broken character belongs.

Parameter names can need encoding too

Most examples focus on query values, but unusual parameter names can also contain characters that need protection. A name with spaces, brackets, punctuation, or non-English text should be treated carefully so the server receives the intended key.

Stable API designs usually keep parameter names simple, yet copied integrations sometimes include names that still require escaping.

Analytics links may contain nested destinations

Tracking URLs often include another URL as a parameter value. That inner destination usually needs component encoding so its own question marks and ampersands do not break the outer tracking link.

If a campaign link fails, decode one layer at a time and confirm which address is the wrapper and which address is the final destination.