Contents

URL encoding, also called percent-encoding, makes special characters safe inside query-string keys and values by replacing unsafe bytes with percent escapes. When you prepare query parameters, the mode you choose determines which characters are escaped and which reserved delimiters stay intact. The SyntaxBench URL codec offers three modes: URL component for individual path segments, query keys, or query values; complete URL for preserving reserved delimiters; and form value for application/x-www-form-urlencoded rules, where spaces become plus signs. All input is processed in the browser tab with no uploads, storage, or remote requests. This outline covers mode selection, encoding decisions, outputs, and limitations for end users preparing query parameters. It does not confirm current prices, availability, opening hours, booking rules, or transport policies because none are advertised by the source.
Choose an encoding mode for query parameters
Start by deciding whether you are encoding a single piece of data or an entire URL.
Use URL component mode when you need to encode an individual path segment, a query key, or a query value. This mode is appropriate when you control only one fragment of a larger request and want special characters inside that fragment to be converted to percent escapes.
Use complete URL mode when you are working with a full URL and need reserved delimiters such as ?, &, =, /, #, and spaces to remain structurally meaningful where appropriate. Because this mode preserves reserved URL delimiters, encoded delimiters such as %2F remain encoded when decoding. This mode does not validate whether the complete URL is well-formed.
Use form value mode when the data will be sent as application/x-www-form-urlencoded content. Under these rules, a space becomes + and a literal plus sign becomes %2B. This differs from component modes, where spaces may be represented differently depending on the underlying encoding behavior.
Reserved characters such as ampersand, equals, slash, question mark, and hash can be encoded in component mode because the goal is to protect the contents of a single key or value. In complete URL mode, those same characters often retain their delimiter meaning rather than being escaped indiscriminately.
If you are unsure which mode to use, consider whether the text will stand alone as a parameter value or sit inside an address that a browser or client must parse as a whole. A single query value containing an ampersand is safer in component mode if you want the ampersand escaped rather than interpreted as a parameter separator.
Encode query keys and values safely
The tool accepts source text and processes it in the browser tab. Before you enter text, the result field starts as WAITING and character counts show zero. After you enter source text and choose a mode, the result field updates with the encoded output.
Encoding works on bytes using UTF-8 and percent-escapes unsafe bytes. Typical query strings containing accents, spaces, ampersands, and equals signs can be converted so that each special character appears as a percent escape followed by hexadecimal digits. For example, a space may become %20 in component-style contexts, while form value mode represents a space as +. A literal ampersand can become %26, an equals sign can become %3D, and accented characters are encoded according to their UTF-8 byte sequences.
Because the tool encodes individual path segments, query keys, or query values, you can paste a key such as filter and a value such as shoes & boots and see both parts transformed so the ampersand does not accidentally split the query string. The encoded result can then be appended to a URL or embedded in a request.
The tool is not a URL validator, so it does not check whether the final address is syntactically complete or reachable. It only transforms the text you provide according to the selected mode. If you need to encode nested JSON inside a query value, you can paste the JSON text as the source and choose component mode, but the tool does not add JSON-specific structure or validation beyond ordinary percent-encoding of the characters present.
Decode previously encoded query parameters
Decoding reverses percent-escaped sequences back into readable text. Because the decoder uses strict UTF-8 decoding behavior, malformed percent escapes or unpaired surrogates produce an error instead of silently returning garbled text. When decoding fails, the source text remains untouched, so you can correct the input and try again without losing what you pasted.
How decoding behaves by mode
The mode you choose changes which percent escapes the decoder treats as reversible. In complete URL mode, reserved URL delimiters are preserved, so encoded delimiters such as %2F may remain encoded rather than turning back into a slash. You should not expect every percent escape to become a literal character if the selected mode treats that character as a reserved delimiter. For single query keys or values, behavior is generally more direct, but mode selection still determines how delimiters such as &, =, ?, #, and / are handled.
What to check before decoding
Inspect the input for common error conditions before you paste it into the source field:
- Truncated escapes such as %2 without two following hex digits
- Percent signs not followed by valid hexadecimal pairs
- Byte sequences that do not form valid UTF-8 when combined
- Mixing encoding styles from different sources
If an error appears, review the original source for copying mistakes or mixed encoding styles, then paste a corrected version and decode again.
Result field behavior
The result field starts as WAITING and updates after you enter source text and choose a decoding mode. Character counts show zero before input appears. A successful decode replaces percent escapes with their decoded characters; a failed decode leaves the source unchanged and displays an error message rather than modifying your text.
Understand limits and privacy behavior
The tool applies a 1 MiB input limit. If your text exceeds this size, you should split it into smaller parts or shorten the content before encoding or decoding. No specific character-set restriction beyond UTF-8 processing is advertised by the source, so extremely long or unusual strings should be tested cautiously.
All processing happens in the browser tab. There are no uploads, no storage, and no remote requests. Your text is not sent to a server when you use the URL codec. No sign-in is required to use the tool.
The tool does not validate complete URLs. It transforms text according to the selected encoding or decoding mode, but it does not confirm that a URL is well-formed, reachable, or safe to visit. You remain responsible for checking the final address before sharing or submitting it.
If you are working with sensitive query values such as tokens or identifiers, browser-only processing reduces network exposure, but you should still avoid pasting secrets into any public or shared device and clear the input when finished.
Compare URL encoding with JSON and timestamp tools
SyntaxBench provides separate enabled tools for different syntax tasks: json-format, url-codec, and timestamp-convert. Understanding what each one does helps you choose the right tool.
The URL codec transforms text for safe inclusion in URLs. It escapes special characters, supports three modes, and handles query keys and values. It does not reformat structured data, preserve key order, or manage duplicate keys beyond ordinary character replacement.
The JSON formatter changes whitespace only and preserves number tokens, escaped strings, key order, and duplicate keys. It is not used for URL query encoding. If your task is to make a JSON object compact or pretty-printed without altering its data, use json-format. If your task is to put that JSON inside a query value, you may need to pass the JSON text through the URL codec afterward.
The timestamp converter handles Unix timestamp conversion, which is unrelated to character escaping. Use it when you need to convert between timestamps and dates, not when preparing query parameters.
A practical distinction is that URL encoding changes the representation of characters to make them transport-safe, while JSON formatting changes layout and spacing without changing encoded string contents, and timestamp conversion changes date-time representation entirely.