GGfor Tools

URL Encoder & Decoder

Encode or decode UTF-8 text with explicit component, full URI and form-value modes. Choose how spaces, plus signs and URI delimiters are handled.

Choose an encoding mode

Component mode encodes one parameter value or path segment. Spaces become %20; + stays a plus when decoding.

Input limit: 1,048,576 UTF-16 code units. No automatic trimming or repeated decoding. Editing input or mode clears the old result.

Waiting for input...

URL encoding guide: components, full URIs and form values

Percent encoding represents UTF-8 bytes with % followed by two hexadecimal digits. Use the mode that matches your data: one URL component, a full URI or one form value. Encoding changes representation; it is not encryption and does not prove that a link is safe.

Which mode should I use?

Component mode follows encodeURIComponent/decodeURIComponent for a parameter value or individual path segment. Full URI mode follows encodeURI/decodeURI and preserves URI delimiters, including reserved escapes during decoding. It does not parse, repair or validate a URL. Form value mode uses application/x-www-form-urlencoded character rules for a single value, not an entire key=value query string.

Spaces, plus signs and %2B

Component and full URI encoding use %20 for spaces, and their decoders preserve a literal +. Form encoding uses + for spaces and %2B for a literal plus; its decoder turns + into a space. Choose form mode only when the source uses that convention. A plus in a path is not automatically a space.

  • Component example: a+b c → a%2Bb%20c
  • Form value example: a+b c → a%2Bb+c
  • UTF-8 example: 你好 → %E4%BD%A0%E5%A5%BD

A complete URL and an embedded URL are different inputs

Full URI mode keeps separators such as : / ? & = #. It cannot decide which reserved characters inside a parameter value should be escaped. Encode individual values with component or form mode before assembling a query. If a whole URL is itself a parameter value, component mode encodes its separators intentionally. This tool is not a hostname or internationalized-domain converter.

Why does %252F become %2F rather than /?

Each click decodes one layer. In component mode, %252F becomes %2F; another deliberate decode produces /. A double-encoded string is not necessarily malformed. Encoding an existing percent escape also encodes its percent sign again. Do not repeatedly decode until the result stops changing, because that can alter the intended URL structure.

Malformed escapes and UTF-8 errors

A literal percent sign must be represented as %25 when decoding encoded data. Incomplete escapes such as % or %2, non-hex escapes such as %GG, and invalid UTF-8 byte sequences are rejected. Unpaired Unicode surrogates are also rejected rather than silently replaced. Errors clear the result and disable copying.

Copying, swapping, limits and privacy

Paste input, choose a mode and click Encode or Decode. Swap exchanges the fields without converting them. Clear empties both fields without clearing your clipboard. The input limit is 1,048,576 UTF-16 code units; textareas may normalize line endings. Conversion does not submit text to a server or save it in browser storage, but shared site scripts still load. This is not an offline or isolated environment guarantee, and decoded links are not opened automatically.