String Encoder

Utilty to URI-encode strings 3 ways.

Add the method names suggest, these are generally useful when you need to include some string in a URL. Which one is appropriate depends on the situation. Below are some examples of how we find them useful.

String to encode:

Encode it!


Results

encodeURI

 
  
  

encodeURIComponent

 
  
  

escape