URL component encoder and decoder
This tool converts text with JavaScript's encodeURIComponent and reverses valid percent-encoded text with decodeURIComponent. It is intended for individual URL components such as query values, path segments, filenames, or form values.
What encoding changes
Characters that cannot safely appear unchanged in a URL component are represented with percent-encoded UTF-8 bytes. For example, a space becomes %20, an ampersand becomes %26, and non-ASCII text is encoded as one or more byte sequences.
Because the tool encodes a component, it also encodes reserved URL separators such as :, /, ?, #, and &. Do not paste a complete URL unless you intentionally want those separators encoded. For a full URL, encode only the individual parameter or path value that needs protection.
Invalid encoded input
Decoding requires complete %XX byte sequences and valid UTF-8. A stray percent sign, incomplete byte, or invalid sequence produces an error instead of guessing at the intended text.
Privacy
Encoding and decoding happen in the current browser tab. The value is not uploaded to MiniUtil. You can swap the input and output or copy the result to the clipboard.
Related tools include the HTML Encoder/Decoder, Base64 Encoder/Decoder, and JWT Decoder.
Where this comes from
Sources and standards
Links last checked August 13, 2026.