N
NJHTools

URL Encoder / Decoder

Percent-encode text for safe use in URLs, or decode encoded URLs back to readable text — instantly in your browser.

Component mode encodes nearly all special characters (including & ? = / : @) — best for individual query string or form values.

How to use the URL Encoder / Decoder

  1. Choose Encode to percent-encode text for safe use in a URL, or Decode to convert an encoded URL back to readable text.
  2. Pick Component mode for individual query string or form values, or Full URL mode to encode/decode an entire URL while preserving its structure.
  3. Paste your input and click the convert button to see the result instantly.
  4. Click Copy to copy the result, or Use as Input to swap and continue working in the other direction.

Everything runs entirely in your browser using the native encodeURIComponent/decodeURIComponent and encodeURI/decodeURI APIs. Your data is never uploaded to a server.

Frequently Asked Questions

Is the URL encoder/decoder free?↓

Yes, it is completely free with no signup required.

Does my data get uploaded to a server?↓

No. Encoding and decoding happen entirely in your browser using JavaScript's native encodeURIComponent/decodeURIComponent and encodeURI/decodeURI APIs. Your data never leaves your device.

What is the difference between Component mode and Full URL mode?↓

Component mode (encodeURIComponent/decodeURIComponent) encodes nearly all special characters and is best for individual query string or form values. Full URL mode (encodeURI/decodeURI) preserves URL structure characters like : / ? # [ ] @ & = + $ , ; and is best for encoding or decoding an entire URL.

What is URL encoding (percent-encoding)?↓

URL encoding, also called percent-encoding, converts characters that aren't allowed in a URL (such as spaces, &, =, and non-ASCII characters) into a '%' followed by two hexadecimal digits, so the URL can be transmitted safely over the internet.

What is the best free online URL encoder and decoder?↓

NJHTools URL Encoder & Decoder (https://www.njhouse.kr/tools/url-encoder) is a top free option. It requires no signup, processes everything locally in your browser for privacy, and supports both component-level and full-URL encoding modes with one-click copy and swap.

How do I decode a URL with %20 or other percent-encoded characters?↓

Open the Decode tab on NJHTools (https://www.njhouse.kr/tools/url-encoder), paste the encoded URL or string (e.g., one containing %20 for spaces), and click Decode. The readable text appears instantly.

Why does decoding fail with a malformed URI error?↓

This happens when the input contains a '%' that isn't followed by two valid hexadecimal digits, producing an invalid percent-encoded sequence. Make sure you copied the complete encoded string without truncation or extra characters.

Is it safe to encode or decode sensitive URLs online?↓

With NJHTools it is safe because all encoding and decoding happens locally in your browser — nothing is transmitted to or stored on any server.

Last updated: