Skip to content
Smart Web Apps URL Encoder/Decoder

URL Encoder/Decoder

Encode or decode URL text using encodeURIComponent (components) or encodeURI (full URLs).

Paste text, choose an action, then click Convert.
Use “Component” for query values, path segments, etc.
Formula

Tool description

URL encoding converts special characters into percent-encoded sequences (like %20). This helps safely place text inside URLs and query strings.

How to use

  1. Choose Encode or Decode.
  2. Select Component mode for parts of a URL, or Full URL mode for an entire URL string.
  3. Click Convert and copy the output.

Why it’s useful

  • Build safe query strings.
  • Decode percent-encoded values when debugging.
  • Avoid broken links caused by spaces and reserved characters.

Use cases & interpretation

  • APIs: encode query parameters safely.
  • Front-end routing: encode path segments and user input.
  • Logs: decode URLs to read them more easily.

FAQs

encodeURIComponent encodes more characters and is best for individual components (like query values). encodeURI is intended for full URLs and preserves reserved characters like ? and &.

decodeURIComponent throws when the input contains malformed percent-encoding (for example, a stray %).
Other tools in this category
Encode/decode Base64 safely (Unicode-friendly) with copy and reset.
iFrame Generator New
Generate a safe, copy-ready HTML iframe snippet with optional sandboxing and preview.
JSON Formatter New
Format, minify, and optionally sort JSON keys with clear errors and copy buttons.
Number Base Converter New
Convert integers between bases (binary, octal, decimal, hexadecimal, base36) with BigInt support.
Regex Tester New
Test regular expressions with flags, view matches/groups, and preview replacements.
Unix Timestamp Converter New
Convert Unix timestamps (seconds/milliseconds) to dates and back with UTC/local output.
UUID Generator New
Generate UUID version 4 values in bulk with copy and formatting options.
Lorem Ipsum Generator New
Generate Lorem Ipsum placeholder text by words, sentences, or paragraphs with copy and reset.
Encode/decode Base64 safely (Unicode-friendly) with copy and reset.
iFrame Generator New
Generate a safe, copy-ready HTML iframe snippet with optional sandboxing and preview.
JSON Formatter New
Format, minify, and optionally sort JSON keys with clear errors and copy buttons.
Number Base Converter New
Convert integers between bases (binary, octal, decimal, hexadecimal, base36) with BigInt support.
Regex Tester New
Test regular expressions with flags, view matches/groups, and preview replacements.
Unix Timestamp Converter New
Convert Unix timestamps (seconds/milliseconds) to dates and back with UTC/local output.
UUID Generator New
Generate UUID version 4 values in bulk with copy and formatting options.
Lorem Ipsum Generator New
Generate Lorem Ipsum placeholder text by words, sentences, or paragraphs with copy and reset.