VOOZH about

URL: https://www.geeksforgeeks.org/node-js/node-js-query-string-complete-reference/

⇱ Node.js Query String Complete Reference - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Node.js Query String Complete Reference

Last Updated : 23 Jul, 2025

Node.js query String module is used as utilities for parsing and formatting URL query strings. It can be used to convert query string into JSON object and vice-versa. 

Example:

Output:

Parsed Query: [Object: null prototype] {
 username: 'user1',
 units: [ 'kgs', 'pounds' ],
 permission: 'false'
}

Parsed Query: [Object: null prototype] {
 username: 'user1',
 units: [ 'kgs', 'pounds' ],
 permission: 'false'
}

The Complete list of Query String are listed below:

Query String Methods

Description

Node.js querystring.parse() MethodThis is used to parse a URL query string into an object that contains the key and pair values of the query URL.
Node.js querystring.stringify() MethodThis is used to produce an URL query string from the given object that contains the key-value pairs. 
Comment

Explore