Encodeur d'URL
GratuitEncodez et décodez des composants d'URL sans risque.
Percent-encoding turns characters that are not allowed in a URL into %XX escapes. This tool converts text with all four built-in JavaScript URI functions and breaks a full URL down into decoded query parameters, without sending the URL anywhere.
Comment utiliser Encodeur d'URL
- 1Choose one of the four modes: encodeURIComponent, encodeURI, decodeURIComponent or decodeURI.
- 2Type or paste the text you want to convert — the result updates as you type.
- 3Switch modes or use the Swap button to run the result back through the other direction.
- 4Paste a full URL into the query parser to see every parameter decoded in a table.
- 5Copy the result, or download it as a text file.
FAQ Encodeur d'URL
What is the difference between encodeURIComponent and encodeURI?
encodeURI keeps characters that are legal in a complete URL, such as /, ? and &, so it is meant for encoding a whole address. encodeURIComponent escapes those characters too, which makes it the right choice for a single query value or path segment.
Why does a query string sometimes contain plus instead of %20?
In HTML form encoding a plus sign stands for a space. Percent-encoding itself reserves the plus sign for a literal plus, so decode form bodies with URLSearchParams or replace plus with a space before decoding.
Why do I get a URI malformed error when decoding?
decodeURI and decodeURIComponent throw when a percent sign is not followed by two hexadecimal digits, or when the bytes do not form valid UTF-8. Repair the escape sequence, or use the query parser which leaves malformed pairs untouched.
Should I encode a whole URL or its individual parts?
Encode each dynamic part separately with encodeURIComponent, then assemble the URL. Running encodeURIComponent over an entire URL also escapes its ? & = separators, which breaks the address.
Vous utilisez Encodeur d'URL souvent ?
Pro supprime toute la publicité, augmente les limites de fichiers et ajoute le mode par lots ainsi que des préréglages enregistrés dans tous les outils.
Comparer les offres →Outils associés
Encodeur Base64
Encodez du texte ou des fichiers en Base64, et inversement.
Outils pour développeursFormateur JSON
Validez, embellissez et minifiez du JSON avec la position des erreurs.
Outils pour développeursGénérateur de slugs
Des slugs propres et sûrs pour l'URL, à partir de n'importe quel titre.
Outils de texte