How To Decode a URL In JavaScript

You can use the decodeURIComponent() function to decode URI components in Javascript. It does the opposite of encodeURIComponent(). It uses a UTF-8 encoding scheme to decode URI components.

Example: Decode a URL
var url = ''

var urlDecode = decodeURIComponent(url);

Output:öm tö St@ckHöwTö
mcqMCQPractice competitive and technical Multiple Choice Questions and Answers (MCQs) with simple and logical explanations to prepare for tests and interviews.Read More

Leave a Reply

Your email address will not be published. Required fields are marked *