DevToolBoxGRATIS
Blogg

URL Encoder / Decoder

Encode or decode URLs and URI components. Supports encodeURIComponent and encodeURI. Gratis, ingen registrering nødvendig.

About URL Encoding

URL encoding replaces unsafe ASCII characters with a "%" followed by two hexadecimal digits. This is essential for passing special characters in URLs, query parameters, and form data. Use encodeURIComponent for query parameters and encodeURI for full URLs.

Frequently Asked Questions

𝕏 Twitterin LinkedIn

Vurder dette verktøyet

4.7 / 5 · 107 vurderinger

Hold deg oppdatert

Få ukentlige dev-tips og nye verktøy.

Ingen spam. Avslutt når som helst.

Enjoy these free tools?

Buy Me a Coffee

How to Use

  1. Enter text in the input field
  2. Choose between URI Component or Full URI encoding mode
  3. Click 'Encode' or 'Decode'
  4. Copy the result

Common Use Cases

  • Encoding query parameters in URLs
  • Encoding form data for submission
  • Handling special characters in API requests
  • Debugging URL encoding issues

Frequently Asked Questions

What is URL encoding?
URL encoding replaces unsafe ASCII characters with a '%' followed by two hex digits. This ensures special characters are safely transmitted in URLs.
What's the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URL but preserves characters like :, /, ?, &. encodeURIComponent encodes everything including those characters, making it suitable for query parameter values.
When should I URL encode?
Always URL encode when passing user input as query parameters, form data, or any URL component that may contain special characters like spaces, &, =, or #.