Encodeur d'URL
Percent-encode text for safe use in URLs. Gratuit, privé et 100% côté client.
Essayer un exemple:
Local only
Historique récent
Aucun historique
Utilisation
- Paste the text or URL into the input box.
- Choose component or full URL mode.
- Copy the percent-encoded result.
Tâches utilisant cet outil
Construire URL query strings from objects
Construct properly encoded requête chaînes de JavaScript objets. Handle tableaux, nested objets, et special caractères correctly. TÂCHE
Coder binary data into a JSON-safe string
Convertir raw bytes (images, encrypted blobs, file contents) into a Base64 string that can be embedded inside a JSON field without breaking the structure. TÂCHE
Coder text for safe use inside a URL query string
Turn arbitrary texte (avec spaces, ampersands, Unicode, equals signs) en un valeur ce peut être placed directly après ?key= en un URL sans breaking parsing. TÂCHE
Analyser a URL into components and construct URLs from parts
Decompose un URL en protocol, host, path, requête, fragment — et construire un URL de individual composants safely. TÂCHE
Analyser URL query strings
Requête chaînes passer clé-valeur pairs en URLs après le ?. Apprendre parsing, codage, et handling de tableaux, nested objets, et special caractères. TÂCHE
Utiliser MQTT topic structure pour IoT messaging
MQTT topics utiliser slash-separated hierarchies avec wildcards pour subscription. Apprendre topic design, QoS levels, et retained messages. TÂCHE
Pipelines utilisant cet outil
Questions fréquentes
- Why percent-encode a URL?
- Certain characters such as spaces and '&' have special meaning in URLs. Percent-encoding makes them safe to transmit without breaking the URL structure.
- What is the difference between component and full URL modes?
- Component mode encodes every reserved character (like encodeURIComponent), while full URL mode preserves URL structure such as '://', '?', '#', and '&', encoding only spaces and truly unsafe characters.
- How are spaces encoded?
- Spaces are encoded as %20 (not '+'). The + encoding is specific to application/x-www-form-urlencoded in HTML forms; %20 is the correct general-purpose encoding for URL paths and query parameters.
- Which characters are left unencoded?
- Unreserved characters A-Z, a-z, 0-9, '-', '.', '_', and '~' are never encoded. In full URL mode, reserved characters like ':', '/', '?', '&', '=' are also preserved.
- How are multibyte characters handled?
- Characters are encoded to bytes using the selected charset (UTF-8 by default), then each byte is percent-encoded. '你好' becomes %E4%BD%A0%E5%A5%BD in UTF-8.
- Mes données sont-elles téléversées quelque part ?
- Non. Tout l'encodage s'effectue localement dans votre navigateur, sans aller-retour serveur.
Outils associés
Décodeur d'URL
Decode percent-encoded URL text back to readable characters. Gratuit, privé et 100% côté client. OUTIL
Encodeur Base64
Encode text or binary data to Base64 online. Gratuit, privé et 100% côté client. OUTIL
Encodeur hexadécimal
Encode text to hexadecimal online. Gratuit, privé et 100% côté client. OUTIL
Échappement HTML
Escape or unescape HTML special characters online. Gratuit, privé et 100% côté client. OUTIL
Formateur JSON
Format, minify, or sort JSON online. Gratuit, privé et 100% côté client. OUTIL