AfroTools / Developer Tools / URL Encoder

Encode, clean and rebuild URLs without guessing what changed.

Work with full URLs, path segments, query strings and user-entered values. Parse components, remove tracking noise, detect risky parameters and export code snippets for APIs.

URL parser Query editor Tracking cleanup Double-encode detection

URL Input

Absolute URLs are parsed directly. Relative paths use the base URL below.

Encode and Decode Lab

Compare full URL, component and stricter RFC 3986 component behavior.
encodeURI
encodeURIComponent
RFC 3986 component
Form/query value
decodeURIComponent

Components and Query Surgery

Edit path and query safely, including duplicate query keys.
KeyValue

Outputs

Rebuilt URL, cleaned URL, query string, and code handoff.
Rebuilt URL
Clean URL
Query String

            
URL safety check

Encode, inspect, and clean URLs before sharing them

Use browser URL parsing, component encoding, query editing, tracking cleanup, and copyable snippets to make URL changes visible.

Local parser and encoder

URLs are parsed in the browser; avoid pasting secrets you do not want stored in local history or screenshots.

Primary task

  • Paste a full URL or component and inspect the parsed parts.
  • Edit query parameters, remove tracking fields, or encode/decode components.
  • Copy the rebuilt URL, clean URL, or language-specific snippet.

Result and export

  • Parsed URL parts and query table.
  • Rebuilt and cleaned URLs.
  • Copyable code snippets for common languages.

Before you use it

  • Remove access tokens, signed parameters, and private callbacks before sharing.
  • Test redirects, OAuth callbacks, and webhooks after editing.
  • Confirm percent-encoding behavior for non-ASCII text.

Assumptions and freshness

Implementation follows browser URL APIs and linked RFC/WHATWG references. Runtime behavior can differ in backend frameworks, so test critical URLs there too.

Report tool issue

Planning utility only. It is not an official provider, legal, tax, security, filing, compliance, or live-data service. Keep sensitive content local unless you intentionally export or share it.

When should I use encodeURIComponent instead of encodeURI?

Use encodeURIComponent for user-entered values that will become one path segment, one query key or one query value. Use encodeURI only when you already have a complete URL and want to preserve URL delimiters like colon, slash, question mark and ampersand.

Why does this tool warn about double encoding?

Double encoding often appears as `%2520`, which means an already encoded `%20` was encoded again. That can break redirects, signed URLs, callback URLs and search filters.

Does removing tracking parameters change the destination?

Usually it keeps the destination while removing analytics parameters such as `utm_source`, `fbclid`, `gclid` or `msclkid`. Some sites misuse tracking parameters for routing, so test important campaign URLs before publishing.