URL Encoder / Decoder
Percent-encode or decode URLs and query strings, and break a URL into its parts with an editable query table.
Text
Encoded
80 → 372 characters
URL breakdown
- Protocol
- https:
- Host
- example.com
- Port
- default (443)
- Path
- /ค้นหา
- Fragment
- #ผลลัพธ์
- Origin
- https://example.com
Query parameters (3)
Readable
https://example.com/ค้นหา?q=ร้านกาแฟ ใกล้ฉัน&tags=wifi,ปลั๊ก&price=<100฿#ผลลัพธ์
Which encoding should I use?
- Component (
encodeURIComponent) — for a single value inside a URL, such as a query parameter or path segment. It encodes/ ? & = #too, so they can't break the URL. - Whole URL (
encodeURI) — for a complete URL that has Thai text or spaces; it keeps: / ? & = #working. - Form — like Component but spaces become
+, as HTML forms send them (application/x-www-form-urlencoded).
URL breakdown
- Paste any URL to see its protocol, host, port, path and fragment, decoded so Thai text is readable.
- Edit, add or remove query parameters — the URL is rebuilt and encoded correctly for you.
- Thai domain names are stored as punycode (
xn--…); the breakdown shows both forms. - Everything runs in your browser.