DoItAl

Data utility

URL Encoder & Decoder

Encode or decode URL components, handle optional form plus signs, and inspect HTTP(S) query pairs locally. Strict percent and UTF-8 checks explain malformed input.

Browser-local • No upload

Loading tool controls…

Local tool controls

Component encoding uses encodeURIComponent and encodes URL separators. It is not a whole-URL encoder. Inspection parses an absolute HTTP(S) URL without visiting it; query values decode + as spaces. Malformed percent/UTF-8 sequences are rejected.

What this tool does

Converts individual URL components and inspects an absolute HTTP or HTTPS address without opening that address.

How to use it

  1. Paste a component such as a query value, or an absolute HTTP(S) URL.
  2. Encode or decode the component; optionally interpret plus signs as form spaces when decoding.
  3. For a full URL, inspect its parts and ordered decoded query pairs, or copy a component result.

Worked example

‘tea & cake’ encodes to tea%20%26%20cake. a+b decodes to a+b normally or a b with form-plus mode. https://example.com/?tag=red&tag=blue retains both tag query pairs in the inspection.

Processing and explanation

encodeURIComponent protects URL separators inside a component. decodeURIComponent validates percent escapes and UTF-8 bytes. Full URL inspection uses the browser URL parser to normalize the host and separate parts; it preserves repeated query keys and decodes query plus signs as spaces. Path and fragment remain encoded in the displayed report.

Limits and common mistakes

Component input up to 100,000 code units; inspected URLs up to 10,000 characters and 200 query pairs. Inspection accepts absolute HTTP(S) only. Invalid percent escapes, UTF-8 bytes and unpaired encoding surrogates are rejected. Component encoding encodes separators, so it is not a whole-URL encoder. This does not check whether a URL exists or is safe to visit.

Privacy and your input

All conversion and inspection happen locally. The inspected address is never fetched or rendered as a clickable link. Input URLs, query values and outputs are excluded from analytics and storage.

Frequently asked questions

Why did encoding change slash and question mark?
They are URL separators. Component encoding protects them as data; encode only the component you intend to insert.
Is plus always a space?
No. Plus has that meaning in form/query decoding; ordinary component decoding preserves it unless you choose the option.
Does inspection visit the website?
No. It parses the supplied string in this tab without sending a request to that address.

Material content update: