{"id":5129,"date":"2026-06-18T13:46:23","date_gmt":"2026-06-18T13:46:23","guid":{"rendered":"https:\/\/rimanagency.com\/url-encoder-decoder-encode-decode-query-strings-paths-params\/"},"modified":"2026-06-18T13:46:23","modified_gmt":"2026-06-18T13:46:23","slug":"url-encoder-decoder-encode-decode-query-strings-paths-params","status":"publish","type":"page","link":"https:\/\/rimanagency.com\/fr\/url-encoder-decoder-encode-decode-query-strings-paths-params\/","title":{"rendered":"URL Encoder \/ Decoder \u2014 Encode &#038; Decode Query Strings, Paths &#038; Params"},"content":{"rendered":"<style>.rt-h{background:linear-gradient(135deg,#f1f5e8,#e8efdb);border-radius:14px;padding:32px;margin:0 0 24px;text-align:center}.rt-h h1{margin:0 0 10px;font-size:28px;color:#4a6320}.rt-g{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:0 0 24px}.rt-f,.rt-o{background:#fff;border:1px solid #e0e6d8;border-radius:10px;padding:22px}.rt-f h3,.rt-o h3{margin:0 0 14px;color:#4a6320;font-size:18px}.rt-f label{display:block;font-size:13px;color:#516048;font-weight:600;margin:10px 0 6px}.rt-f input,.rt-f select,.rt-f textarea{width:100%;padding:9px;border:1px solid #d4dac6;border-radius:6px;font-size:14px;box-sizing:border-box;font-family:inherit}.rt-btn{background:#719430;color:#fff;border:none;padding:11px 20px;border-radius:6px;font-weight:700;cursor:pointer;width:100%;margin-top:14px;font-size:15px}.rt-btn:hover{background:#4a6320}.rt-cta{background:linear-gradient(135deg,#719430,#4a6320);color:#fff;border-radius:14px;padding:32px;text-align:center;margin:30px 0}.rt-cta h3{margin:0 0 6px;color:#fff}.rt-cta a{background:#fff;color:#4a6320;padding:12px 28px;border-radius:6px;font-weight:700;text-decoration:none;display:inline-block;margin-top:14px}@media(max-width:768px){.rt-g{grid-template-columns:1fr}}<\/style>\n<div class=\"rt-h\">\n<h1>URL Encoder \/ Decoder<\/h1>\n<p>Percent-encode any string to make it safe for URLs (query strings, paths, fragments) \u2014 or decode an encoded URL back to its original form. Essential for debugging, tracking links, and any URL containing spaces, emoji, or special characters.<\/p>\n<\/div>\n<div class=\"rt-g\">\n<div class=\"rt-f\">\n<h3>Input<\/h3>\n<p><label>Text or URL<\/label><textarea id=\"ue-in\" rows=\"7\" placeholder=\"Search &#038; \"rank\" me!\"><\/textarea><label>Mode<\/label><select id=\"ue-mode\"><option value=\"encode\" selected>encodeURIComponent (most common)<\/option><option value=\"encodefull\">encodeURI (preserves URL structure)<\/option><option value=\"decode\">decodeURIComponent<\/option><\/select><\/div>\n<div class=\"rt-o\">\n<h3>Output<\/h3>\n<p><textarea id=\"ue-out\" rows=\"8\" readonly style=\"width:100%;padding:10px;border:1px solid #d4dac6;border-radius:6px;font-size:13px;box-sizing:border-box;font-family:Consolas,monospace;background:#fafafa\">Output appears here<\/textarea><button class=\"rt-btn\" style=\"background:#516048;margin-top:10px\" onclick=\"copyurlcoder()\">Copy to Clipboard<\/button><\/div>\n<\/div>\n<p><script>function cUe(){var t=document.getElementById(\"ue-in\").value;var m=document.getElementById(\"ue-mode\").value;var out=\"\";try{if(m===\"encode\")out=encodeURIComponent(t);else if(m===\"encodefull\")out=encodeURI(t);else out=decodeURIComponent(t)}catch(e){out=\"Error: \"+e.message}document.getElementById(\"ue-out\").value=out}[\"ue-in\",\"ue-mode\"].forEach(function(id){document.getElementById(id).addEventListener(\"input\",cUe);document.getElementById(id).addEventListener(\"change\",cUe)});cUe();<\/script><script>function copyurlcoder(){var ta=document.getElementById(\"ue-out\");ta.select();navigator.clipboard.writeText(ta.value);event.target.textContent=\"\u2713 Copied!\";setTimeout(function(){event.target.textContent=\"Copy to Clipboard\"},1500)}<\/script><\/p>\n<h2>How to use the URL Encoder\/Decoder<\/h2>\n<p>Paste your string or URL. Pick a mode: `encodeURIComponent` for parameter values (the most common), `encodeURI` for whole URLs (preserves \/, ?, &#038;), or `decodeURIComponent` to reverse either. The output updates in real time.<\/p>\n<h2>Why this tool matters<\/h2>\n<p>URLs only allow ASCII letters, digits, and a small set of reserved characters. Spaces, emoji, accented letters, ampersands inside values, and quote marks all need to be percent-encoded. Without encoding, your URL breaks at the first ampersand inside a value, gets truncated at the first space, or 404s on a UTF-8 character. Percent-encoding is the standard fix.<\/p>\n<h2>Common use cases<\/h2>\n<ul>\n<li>Building UTM-tagged campaign URLs that contain spaces or accented characters<\/li>\n<li>Encoding form data for GET requests<\/li>\n<li>Debugging tracking links where parameters look corrupted<\/li>\n<li>Constructing API endpoints with user-generated content in the path<\/li>\n<li>Encoding non-Latin characters (Japanese, Arabic, Cyrillic) for URLs<\/li>\n<li>Decoding encoded URLs from logs to make them readable<\/li>\n<\/ul>\n<h2>encodeURI vs. encodeURIComponent<\/h2>\n<p>`encodeURI` is for whole URLs \u2014 it preserves URL structure characters like \/, ?, &#038;, # because those are meaningful in a URL. `encodeURIComponent` is for individual values \u2014 it encodes EVERYTHING that needs encoding including \/ and &#038;. Use encodeURIComponent for query parameter values. Use encodeURI for entire URLs you assembled from trusted parts.<\/p>\n<h2>Frequently Asked Questions<\/h2>\n<p><strong>Why does &#8220;+&#8221; become &#8220;%20&#8221; sometimes?<\/strong><br \/>Both can represent a space in a URL \u2014 but only in different parts. In query strings, both work. In paths, only %20 works. Encoders consistently use %20 to avoid ambiguity.<\/p>\n<p><strong>Do I need to encode hashtags and ampersands?<\/strong><br \/>In a parameter value: yes (&#038; would otherwise be read as the next parameter). In a URL fragment after #: ampersand is fine. In a URL path: encode hash but leave slashes alone.<\/p>\n<p><strong>Why does my emoji get mangled in URLs?<\/strong><br \/>Emoji are multi-byte UTF-8. Many systems don\\u2019t percent-encode them automatically. Always run user-generated content through encodeURIComponent before adding to a URL.<\/p>\n<p><strong>Will encoding break my tracking pixel?<\/strong><br \/>Only if encoded twice. Watch for double-encoding (%2520 instead of %20). Decode once, then encode once.<\/p>\n<div class=\"rt-cta\">\n<h3>Need clean UTM tracking across paid, organic, and email?<\/h3>\n<p style=\"margin:0;opacity:.95\">Riman Agency builds attribution programs with bulletproof URL hygiene.<\/p>\n<p><a href=\"\/contact\/\">Get a Tracking Audit<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>URL Encoder \/ Decoder Percent-encode any string to make it safe for URLs (query strings, paths, fragments) \u2014 or decode an encoded URL back to its original form. Essential for debugging, tracking links, and any URL containing spaces, emoji, or special characters. Input Text or URLModeencodeURIComponent (most common)encodeURI (preserves URL structure)decodeURIComponent Output Output appears hereCopy [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-5129","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>URL Encoder \/ Decoder \u2014 Encode &amp; Decode Query Strings, Paths &amp; Params - Riman Agency<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/rimanagency.com\/fr\/url-encoder-decoder-encode-decode-query-strings-paths-params\/\" \/>\n<meta property=\"og:locale\" content=\"fr_CA\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"URL Encoder \/ Decoder \u2014 Encode &amp; Decode Query Strings, Paths &amp; Params - Riman Agency\" \/>\n<meta property=\"og:description\" content=\"URL Encoder \/ Decoder Percent-encode any string to make it safe for URLs (query strings, paths, fragments) \u2014 or decode an encoded URL back to its original form. Essential for debugging, tracking links, and any URL containing spaces, emoji, or special characters. Input Text or URLModeencodeURIComponent (most common)encodeURI (preserves URL structure)decodeURIComponent Output Output appears hereCopy [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rimanagency.com\/fr\/url-encoder-decoder-encode-decode-query-strings-paths-params\/\" \/>\n<meta property=\"og:site_name\" content=\"Riman Agency\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/rimanagency.com\\\/url-encoder-decoder-encode-decode-query-strings-paths-params\\\/\",\"url\":\"https:\\\/\\\/rimanagency.com\\\/url-encoder-decoder-encode-decode-query-strings-paths-params\\\/\",\"name\":\"URL Encoder \\\/ Decoder \u2014 Encode & Decode Query Strings, Paths & Params - Riman Agency\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rimanagency.com\\\/#website\"},\"datePublished\":\"2026-06-18T13:46:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/rimanagency.com\\\/url-encoder-decoder-encode-decode-query-strings-paths-params\\\/#breadcrumb\"},\"inLanguage\":\"fr-CA\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/rimanagency.com\\\/url-encoder-decoder-encode-decode-query-strings-paths-params\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/rimanagency.com\\\/url-encoder-decoder-encode-decode-query-strings-paths-params\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/rimanagency.com\\\/home\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"URL Encoder \\\/ Decoder \u2014 Encode &#038; Decode Query Strings, Paths &#038; Params\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/rimanagency.com\\\/#website\",\"url\":\"https:\\\/\\\/rimanagency.com\\\/\",\"name\":\"Riman Agency\",\"description\":\"A Full Service Digital Marketing Agency\",\"publisher\":{\"@id\":\"https:\\\/\\\/rimanagency.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/rimanagency.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-CA\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/rimanagency.com\\\/#organization\",\"name\":\"Riman Agency\",\"url\":\"https:\\\/\\\/rimanagency.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-CA\",\"@id\":\"https:\\\/\\\/rimanagency.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/rimanagency.com\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/RIMANagency-all-logos-1-2.png\",\"contentUrl\":\"https:\\\/\\\/rimanagency.com\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/RIMANagency-all-logos-1-2.png\",\"width\":694,\"height\":211,\"caption\":\"Riman Agency\"},\"image\":{\"@id\":\"https:\\\/\\\/rimanagency.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"URL Encoder \/ Decoder \u2014 Encode & Decode Query Strings, Paths & Params - Riman Agency","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/rimanagency.com\/fr\/url-encoder-decoder-encode-decode-query-strings-paths-params\/","og_locale":"fr_CA","og_type":"article","og_title":"URL Encoder \/ Decoder \u2014 Encode & Decode Query Strings, Paths & Params - Riman Agency","og_description":"URL Encoder \/ Decoder Percent-encode any string to make it safe for URLs (query strings, paths, fragments) \u2014 or decode an encoded URL back to its original form. Essential for debugging, tracking links, and any URL containing spaces, emoji, or special characters. Input Text or URLModeencodeURIComponent (most common)encodeURI (preserves URL structure)decodeURIComponent Output Output appears hereCopy [&hellip;]","og_url":"https:\/\/rimanagency.com\/fr\/url-encoder-decoder-encode-decode-query-strings-paths-params\/","og_site_name":"Riman Agency","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/rimanagency.com\/url-encoder-decoder-encode-decode-query-strings-paths-params\/","url":"https:\/\/rimanagency.com\/url-encoder-decoder-encode-decode-query-strings-paths-params\/","name":"URL Encoder \/ Decoder \u2014 Encode & Decode Query Strings, Paths & Params - Riman Agency","isPartOf":{"@id":"https:\/\/rimanagency.com\/#website"},"datePublished":"2026-06-18T13:46:23+00:00","breadcrumb":{"@id":"https:\/\/rimanagency.com\/url-encoder-decoder-encode-decode-query-strings-paths-params\/#breadcrumb"},"inLanguage":"fr-CA","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rimanagency.com\/url-encoder-decoder-encode-decode-query-strings-paths-params\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/rimanagency.com\/url-encoder-decoder-encode-decode-query-strings-paths-params\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/rimanagency.com\/home\/"},{"@type":"ListItem","position":2,"name":"URL Encoder \/ Decoder \u2014 Encode &#038; Decode Query Strings, Paths &#038; Params"}]},{"@type":"WebSite","@id":"https:\/\/rimanagency.com\/#website","url":"https:\/\/rimanagency.com\/","name":"Agence Riman","description":"Une agence de marketing num\u00e9rique \u00e0 service complet","publisher":{"@id":"https:\/\/rimanagency.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/rimanagency.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-CA"},{"@type":"Organization","@id":"https:\/\/rimanagency.com\/#organization","name":"Agence Riman","url":"https:\/\/rimanagency.com\/","logo":{"@type":"ImageObject","inLanguage":"fr-CA","@id":"https:\/\/rimanagency.com\/#\/schema\/logo\/image\/","url":"https:\/\/rimanagency.com\/wp-content\/uploads\/2022\/02\/RIMANagency-all-logos-1-2.png","contentUrl":"https:\/\/rimanagency.com\/wp-content\/uploads\/2022\/02\/RIMANagency-all-logos-1-2.png","width":694,"height":211,"caption":"Riman Agency"},"image":{"@id":"https:\/\/rimanagency.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/rimanagency.com\/fr\/wp-json\/wp\/v2\/pages\/5129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rimanagency.com\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/rimanagency.com\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/rimanagency.com\/fr\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/rimanagency.com\/fr\/wp-json\/wp\/v2\/comments?post=5129"}],"version-history":[{"count":0,"href":"https:\/\/rimanagency.com\/fr\/wp-json\/wp\/v2\/pages\/5129\/revisions"}],"wp:attachment":[{"href":"https:\/\/rimanagency.com\/fr\/wp-json\/wp\/v2\/media?parent=5129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}