---
title: "What is decodeURI(), encodeURI in JavaScript"  
description: "What is decodeURI(), encodeURI in JavaScript"  
author: "Danish Khan"  
published: 2012-11-01  
updated: 2020-09-21  
canonical: https://www.mindstick.com/interview/1566/what-is-decodeuri-encodeuri-in-javascript  
category: "javascript"  
tags: ["javascript"]  
reading_time: 1 minute  

---

# What is decodeURI(), encodeURI in JavaScript

To send the characters that can not be specified in a URL should be converted into their equivalent hex encoding. To perform this task the methods encodeURI() and decodeURI() are used.

## Answers

### Answer by Danish Khan

To send the characters that can not be specified in a URL should be converted into their equivalent hex encoding. To perform this task the methods encodeURI() and decodeURI() are used.


---

Original Source: https://www.mindstick.com/interview/1566/what-is-decodeuri-encodeuri-in-javascript

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
