RFC 3986 URL Encoder & Percent-Encoding Tool
Rate this tool
0 of 0 ratings
Additional page content: Editable from the admin panel -> tools content.
Programmatic Code Snippets: URL Encode String
How to implement URL Encode String programmatically in Python, Node.js, PHP, and CLI
URL encode query parameter in Python 3
import urllib.parse
query = "Hello World & Toolbox24 #1"
encoded = urllib.parse.quote(query)
print(encoded) # Output: Hello%20World%20%26%20Toolbox24%20%231
Encode URL string in JavaScript / Node.js
const query = "Hello World & Toolbox24 #1";
const encoded = encodeURIComponent(query);
console.log(encoded); // Output: Hello%20World%20%26%20Toolbox24%20%231
URL encode string in PHP
<?php
$query = "Hello World & Toolbox24 #1";
echo rawurlencode($query); // RFC 3986 encoding
URL encode in Bash using Python one-liner
python3 -c "import urllib.parse, sys; print(urllib.parse.quote(sys.argv[1]))" "Hello World & Toolbox24 #1"
Popular tools
10 Popular Converters
JSON Validator, Beautifier & Syntax Debugger
★
High-Entropy Secure Password Generator
★
RFC 4648 Base64 Encoder & Data URI Generator
★
Authoritative DNS Lookup & Records Inspector
★
Ping Test Tool – ICMP Echo Request/Reply
★
RFC 1321 MD5 Checksum & Hash Generator
Client-Side QR Code Reader & Data Matrix Decoder
RFC 3986 URL Encoder & Percent-Encoding Tool
Lorem Ipsum Dummy Text Generator
Online HTML Minifier & DOM Payload Optimizer