Encoded URL
www.example.com
search

Introduction:

Uniform Resource Locators contain letters, digits and a reserved punctuation set. Any character outside this subset is converted into its hexadecimal equivalent prefixed by “%”, a process called percent-encoding. Internationalised domain names rely on Punycode, and links may embed parameters, fragments or credentials that must remain predictable across browsers, servers and keyboards.

The tool accepts any HTTP, HTTPS or custom-scheme link, normalises its host, path and query string, then applies single or iterative percent-encoding. Optional switches convert IDNs to Punycode, force lowercase hosts, trim trailing slashes, replace spaces with plus signs and alphabetise parameters. A reactive engine updates every change instantly and shows Base64 renditions and decomposed components.

Paste a messy tracking URL from an email campaign to produce a clean, shareable link for documentation, logs or social posts; you can even open or copy the result directly from the summary box. If a server expects unencoded values, repeated encoding may break routes—test carefully when applying multi-level mode.

Technical Details:

Percent-encoding converts characters not present in the unreserved URI set—letters, digits, hyphen, period, underscore, tilde—into a two-byte hexadecimal sequence prefixed by “%”. Canonicalisation creates a deterministic baseline: normalised scheme, host, path and sorted query string. Internationalised hosts use Punycode (RFC 3492) and composite strings may be wrapped in Base64 for transport through text-only systems. The tool fuses these standards to deliver highly interoperable, lossless URLs.

Encoding sequence

  1. Parse the original string into scheme, authority, path, query and fragment components.
  2. If Convert IDN → Punycode is active, encode the host using the Punycode algorithm.
  3. Apply optional normalisation: lowercase host, trim trailing “/”, sort query parameters alphabetically.
  4. Run encodeURIComponent() once or up to eight times until the output no longer changes or the user disables multi-level mode.
  5. Optionally replace “%20” with “+” to meet legacy form-encoding expectations.
Output VariantPurpose
Encoded URLPrimary percent-encoded link ready for pasting.
Single-encodedRaw result of one encodeURIComponent pass.
Double-encodedSafeguard where gateway layers re-decode automatically.
Base64Binary-to-text form for email headers or QR codes.
URL-safe Base64Padding-free version using - and _ for path embedding.

Parameters

ParameterMeaning
URL to encodeFull link string to canonicalise and encode.
Multi-level encodeRepeat percent-encoding up to eight iterations.
Convert IDN → PunycodeTransforms Unicode hostnames to ASCII labels.
Replace %20 with +Uses plus signs for spaces in query strings.
Lower-case hostEnsures host casing consistency.
Trim trailing /Removes redundant slash at path end.
Sort parametersAlphabetises query keys for cacheable order.

Assumptions & Limitations

  • Tool assumes input is a complete URI, not a fragment of HTML or JSON.
  • Maximum eight encoding rounds mitigate infinite loops on idempotent inputs.
  • Replacing spaces with “+” applies only inside the query string, not the path.
  • Base64 output omits padding when URL-safe mode is selected.
  • Canonicalisation does not infer missing schemes.

Edge Cases & Error Sources

  • Non-UTF-8 clipboard text may mis-encode unexpectedly.
  • Bare IPv6 hosts require square brackets.
  • Opaque URIs (e.g. mailto:) bypass percent-encoding.
  • Double-encoding reserved characters (%25) can confuse server routers.

Scientific Validity & References

Based on RFC 3986 (URI Syntax), RFC 3987 (IRIs) and RFC 3492 (Punycode). These documents outline the encoding rules implemented by modern browsers and servers.

URL strings are processed entirely in your browser; no personal data leaves your device, supporting GDPR principles for client-side tools.

Step-by-Step Guide:

Follow these actions to convert and copy a safe, shareable link.

  1. Paste or type your link into the URL to encode field.
  2. Expand Advanced to toggle encoding options as needed.
  3. Observe the live Encoded URL in the summary box.
  4. Select Copy to place the result on the clipboard or choose Open to test it in a new tab.
  5. Use the Parameters and Components tabs to audit query keys, path segments and overall length before sharing.

FAQ:

When should I use multi-level encoding?

Choose multi-level mode when an intermediate proxy or gateway decodes links once before forwarding them, preventing premature character exposure.

Does replacing %20 with + alter path sections?

No. The replacement occurs only inside the query string, emulating legacy application/x-www-form-urlencoded behaviour.

Is my data stored?

Your link remains in the browser’s memory; nothing is logged or transmitted externally.

Why sort parameters alphabetically?

Consistent ordering improves cache hits, signature verification and diff-rendering in version-controlled documentation.

Can I decode a URL with this tool?

Yes. Paste an encoded link, disable multi-level mode and repeatedly click the Copy original button after each pass until the string stabilises.

Glossary:

Percent-encoding
Hexadecimal escape of non-safe characters inside URIs.
Punycode
Algorithm mapping Unicode hostnames to ASCII labels.
Canonicalisation
Transformation that produces a single, predictable URL form.
Base64
Binary-to-text encoding using 64 ASCII symbols.
URL-safe Base64
Variant replacing “+” and “/” with “-” and “_”, omitting “=” padding.

No data is transmitted or stored server-side.

Embed this tool into your website using the following code: