URL Encoder & Decoder
Percent encode or decode URL components and full URLs. Handles Unicode and reports malformed escape sequences instead of failing silently.
Runs on your device
Result
What it does
Query string values with spaces, ampersands or non-Latin characters must be percent encoded. Use component mode for a single parameter value and full-URL mode when you want to keep the URL structure (slashes, ? and &) intact.
How to use it
- Choose the mode.
- Paste your text or URL.
- Copy the converted value.
Example
The example fills in realistic values and runs the tool. Select Try an example above to see it.
When it helps
- Building query strings by hand.
- Reading encoded redirect or callback URLs in logs.
- Checking how a form value will be transmitted.
Questions
What is the difference between the two encode modes?
Component mode (encodeURIComponent) also encodes / ? & = and #, which is right for a single value. Full URL mode (encodeURI) leaves those characters so the address still works.
Why does decoding turn + into a space?
HTML forms encode spaces as +, so the decoder treats + as a space, which matches how servers read form data.
More developer tools
See all 25- SHA Hash Generator Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text using the browser Web Crypto API. Nothing you type is uploaded.
- UUID v4 Generator Generate up to 1,000 random version 4 UUIDs at once using a cryptographically secure random source, in lowercase, uppercase or without hyphens.
- Regex Tester Test JavaScript regular expressions against sample text and list every match with its position and capture groups.
- Unix Timestamp Converter Convert Unix timestamps in seconds or milliseconds to ISO 8601, UTC and local time, or turn a date string back into a timestamp.
- JSON to CSV Converter Convert a JSON array of objects into a CSV file. Nested objects become dot notation columns and formula like cells are neutralised for spreadsheets.
- CSV to JSON Converter Parse CSV (quoted fields, embedded commas and line breaks included) into a JSON array, using the header row as keys and optional type inference.
People also use
Browse all 200 tools- Invoice Generator (PDF) Create a clean, professional PDF invoice with line items, discount, tax and notes. Generated in your browser, no sign up, no watermark, no data stored. Business
- Keyboard Tester Press every key and see it light up on a full keyboard layout to find dead or sticking keys, with key codes and rollover testing. Device tests
- Image to Base64 Data URI Convert an image file into a Base64 data URI, CSS background rule or HTML img tag for embedding small icons directly in code. Image
- Descriptive Statistics Calculator Get mean, median, mode, range, quartiles, variance and standard deviation (sample and population) for a list of numbers. Student & maths