Skip to content
Developer Tools

URL Encoder & Decoder

Percent-encode or decode URL components and full URLs locally with strict Unicode validation.

Loading this local tool…

Data handling

Storage and export controls

Retention
The tool's working state is kept only while this page is open. Inputs and results are not saved to persistent storage by Got A Tool.
Export
The tool may prepare a result after you run it. It downloads or copies it only when you choose that action.

Advertising and analytics are separate site services. We do not send selected tool input to them. Read the Privacy Policy for details.

How it works

Encode the URL part that actually needs encoding

Choose whether you are handling one URL component or a complete URL. The two modes make different promises about characters such as ?, &, =, and #.

  1. Step 01

    Choose a direction

    Percent-encode text for a URL or decode an existing percent-encoded value.

  2. Step 02

    Choose the scope

    Use component mode for one value inside a URL; use full-URL mode when the surrounding address structure should remain visible.

  3. Step 03

    Review and reverse if needed

    Copy the checked output or send it back through the opposite direction before using it elsewhere.

What this tool does and its limits

  • The tool formats text locally and never opens the URL. It cannot confirm that a destination exists, is safe, or accepts the resulting value.
  • Percent-encoding is not HTML form encoding: a plus sign is not automatically treated as a space. Check the convention required by the receiving system.

Standards-based behavior

Choose what belongs to the URL structure.

Component mode encodes delimiters so a value can safely occupy one URL part. Full URL mode preserves structural delimiters while encoding spaces, Unicode, and unsafe characters.

Unicode support

Encodes international text and emoji as their UTF-8 percent-escaped bytes.

Strict decoding

Rejects incomplete escapes, invalid hex pairs, and byte sequences that are not valid UTF-8.

Two scopes

Mirrors encodeURIComponent/decodeURIComponent and encodeURI/decodeURI behavior.

Local processing

No URL or text is requested, visited, uploaded, or stored by Got A Tool.

FAQ

Common questions

Should I encode a component or a full URL?

Use component mode for a query value, path segment, redirect target, or other value inserted inside a URL. Use full URL mode when the input already contains URL structure such as a scheme, host, path, query, and fragment.

Why does full URL mode preserve some percent escapes when decoding?

Reserved delimiters can change a URL's structure. Full URL decoding follows decodeURI behavior and preserves encoded reserved characters; component mode decodes them when the value is a single component.

Does a plus sign decode to a space?

No. This tool implements URI percent-encoding, where a plus sign remains a plus. The plus-as-space convention belongs to application/x-www-form-urlencoded form data.

Is URL encoding encryption?

No. Percent-encoding is reversible formatting for URLs and provides no secrecy or security by itself.

Does the tool visit or validate my URL?

No. It transforms the text locally in your browser and makes no request to the entered address.

Keep working