- JSON Formatter/Viewer
Format, minify, visualize and validate JSON.
- JSON Diff
Compare two JSON objects.
- JSON Schema Validator
Validate JSON schema online
- Base64 Encode/Decode
Encode and decode Base64.
- URL Encode/Decode
Encode and decode URL.
- UUID Generator v4 / v1
Generate UUIDs in v4 and other versions.
- Text Hash
Generate cryptographic hashes from your text input using a wide variety of algorithms.
- File Hash
Generate cryptographic hashes from your file using a wide variety of algorithms.
- JWT Decoder & Validator
Decode and validate JSON Web Tokens.
- CSV Viewer
View CSV data in a table.
- CSV to JSON Converter
Convert CSV to JSON.
- JSON to CSV Converter
Convert JSON to CSV.
UUID V4 NPM
This snippet provides a quick, efficient way to generate UUIDs using the npm UUID v4 module.
const uuidv4 = require('uuid/v4');
let id = uuidv4();
console.log(id);
The 'uuid' module of npm is used in this snippet. The version 4 ('v4') method is used here, generating random, unique identifiers - UUIDs.
This code snippet first requires the 'uuid/v4' module. Once it is imported, you can use its method 'v4' to generate a new UUID and store it in the 'id' variable.
Finally, we print the generated id to the console using console.log. Every time you run this code, a unique UUID will be printed.