Developer tools
UTF-8 URL component and form-value encoding
Encode or decode one URL component, a whole URI or a form value. Keep the distinction between space, literal plus and reserved delimiters.
The example values can be changed. Press Calculate to update the result; you can download it as TXT or CSV and collect scenarios in this tab. Nothing is saved or sent automatically.
Result
Method:
Input at most 400 UTF-16 units, no control characters or unpaired surrogate. Each output row at most 500 characters; larger expansions refuse. Processing stays in this page; no external request, automatic storage or rendering input as HTML. Component mode follows RFC3986-style punctuation escaping; whole URI preserves URI separators. Form value uses plus for space and encodes a literal plus. No complete form parser, URL validation or fetch. Malformed percent/UTF-8 refuses.
Decimal results are approximate. Inputs stay in this browser tab.
How it works
Own bounded text transformations: URL contexts, UTF-8 bytes, one-pass entity subset, scalar inspection/composition and basic Greek lookup. Input at most 400 UTF-16 units, no control characters or unpaired surrogate. Each output row at most 500 characters; larger expansions refuse. Processing stays in this page; no external request, automatic storage or rendering input as HTML. Component mode follows RFC3986-style punctuation escaping; whole URI preserves URI separators. Form value uses plus for space and encodes a literal plus. No complete form parser, URL validation or fetch. Malformed percent/UTF-8 refuses.
Worked example
With these example values the calculator gives the result below. You can change any value in the form above.
Inputs
- Direction
- Encode
- Encoding context
- One component (RFC3986-style)
- Text or encoded value
- A +&ä🚀
Result
- Result text
- A%20%2B%26%C3%A4%F0%9F%9A%80
- Code point count
- 28
- UTF-16 code units
- 28
- UTF-8 bytes
- 28
- Encoding context
- component
Frequently asked questions
How do I URL-encode a string?
Choose encode and the component scope. The UTF-8 URL encoder follows RFC3986-style punctuation escaping, so reserved delimiters such as & and characters like ä are percent-encoded as UTF-8 bytes.
What is the difference between encoding a URL component and a whole URI?
Component mode escapes reserved punctuation, while whole URI mode preserves the URI separators so the address structure stays intact.
How is a space encoded in a form value?
Form value mode uses a plus sign for a space and encodes a literal plus, so the two stay distinguishable after decoding.
Why does URL decoding fail?
Malformed percent sequences or invalid UTF-8 are refused. Input must also not contain control characters and unpaired surrogates.
How long can the text for URL encoding be?
Input can be at most 400 UTF-16 units and each output row at most 500 characters. Larger expansions are refused.
Does the URL encoder check whether a URL works?
No. It does not validate URLs, fetch anything or act as a complete form parser. Processing stays in the page with no external request.