About 70,500 results
Open links in new tab
  1. encodeURI() - JavaScript | MDN - MDN Web Docs

    Mar 13, 2025 · The encodeURI() function encodes a URI by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of …

  2. Encode URL in JavaScript - Stack Overflow

    Dec 2, 2008 · JavaScript offers a bunch of built-in utility functions which we can use to easily encode URLs. These are two convenient options: encodeURIComponent() : Takes a …

  3. JavaScript encodeURI() Method - W3Schools

    encodeURI() is an ECMAScript1 (JavaScript 1997) feature. It is supported in all browsers: Well organized and easy to understand Web building tutorials with lots of examples of how to use …

  4. How to Encode and Decode a URL in JavaScript? - GeeksforGeeks

    Sep 2, 2024 · This guide covers how to use JavaScript functions like encodeURI(), encodeURIComponent(), escape(), decodeURI(), decodeURIComponent(), and unescape() for …

  5. JavaScript | Encode/Decode a string to Base64 | GeeksforGeeks

    May 28, 2024 · To encode or decode strings in JavaScript, we can use the built-in functions provided by the language. These functions help in encoding special characters in a URL or …

  6. How to Encode JavaScript URL - W3docs

    Encoding a JavaScript URL can be done with two JavaScript functions depending on what you are going to do. These functions are: encodeURI() and encodeURIComponent(). Both are …

  7. Encode and Decode Text Using the Encoding API in JavaScript

    Dec 12, 2024 · The Encoding API in JavaScript provides a convenient and efficient way to encode and decode text when dealing with different character encodings. This is particularly useful for …

  8. JavaScript URL Encode Example – How to Use …

    Aug 4, 2020 · encodeURI and encodeURIComponent are used to encode Uniform Resource Identifiers (URIs) by replacing certain characters by one, two, three or four escape sequences …

  9. javascript - Should I use encodeURI or encodeURIComponent for encoding

    Dec 27, 2010 · encodeURI assumes that the input is a complete URI that might have some characters which need encoding in it. const world = 'A string with symbols & characters that …

  10. What are the encodeURI() and decodeURI() in JavaScript

    Oct 19, 2021 · In JavaScript, we have two special functions to serve these tasks of encoding and decoding the URIs. encodeURI () and decodeURI () these functions are introduced to …

Refresh