Simple and fast unique GUID generator in JavaScript

Category: JavaScript/jQuery Plugins Recommended | October 20, 2021
Author: YahyaAltintop
Official Page: Go to website
Last Update: October 20, 2021
License: MIT

unique guid generator javascript


A simple and fast unique GUID generator in JavaScript, which is simple to integrate in your pure JavaScript project and also compatible with Node.js.


  • It works based on milliseconds therefore, duplication is not possible
  • It usually takes to execute between 0.1ms and 0.5ms
  • It does supports node.js and client side

How to install and use it?

1. Download the code by clicking the ‘Download’ button above and import the GUID generator.

#For client JavaScript

import { Guid } from "../src/guid";

#For node.js 

let { Guid } = require("../src/guid");

2. To generate the unique GUID, use below code:


// 1q6G3w1U-8F0D-8p9R-7m6m-5b5B7G7B9M9S