| | |

JSON 15 ๐Ÿ“„ Programmatic Schema Compilation and Validation (Ajv)

โฑ๏ธ Estimated read: 13 min | |

Ajv is the JSON Schema validator that compiles a schema into a JavaScript function. The compilation is the mechanism that makes the validation fast: instead of interpreting the schema on every validation call, Ajv generates the code that performs the checks, and the generated function is what runs on the data. The Ajv documentation states this directly: “Ajv takes a schema for your JSON data and converts it into a very efficient JavaScript code that validates your data according to the schema” . The compilation happens once, and the compiled function is reused for every subsequent validation of the same schema.

The library is the most widely used JSON Schema validator in the JavaScript ecosystem, and it supports the multiple specification drafts. The default export supports draft-07 (and draft-06), the ajv/dist/2019 export supports draft 2019-09, the ajv/dist/2020 export supports draft 2020-12, and the ajv/dist/jtd export supports the JSON Type Definition (RFC 8927) . The draft choice is the import choice, and the import is the mechanism that determines which keywords are available.

Key point: Ajv compiles a schema into a validation function with ajv.compile(schema). The compiled function is a type guard, and the validate.errors array contains the failure details when the data is invalid. The compilation is cached, and the same schema object returns the same compiled function. The draft support is the import choice: the default for draft-07, the ajv/dist/2019 for 2019-09, and the ajv/dist/2020 for 2020-12.


Why Ajv exists

The interpretation problem. A validator that interprets the schema on every validation call re-reads the keywords, re-resolves the references, and re-builds the comparison logic for each piece of data. The interpretation is the correct behaviour, but it is slow for the high-throughput APIs. Ajv’s compilation is the mechanism that moves the work to the compile time: the schema is parsed once, the code is generated once, and the validation is the generated function call . The speed is the primary reason the library exists, and the benchmarks place it at the top of the JSON Schema validators.

The draft support problem. The JSON Schema specification has the multiple drafts, and the projects are on the different drafts. Ajv’s default export is the draft-07 support, and the separate exports are the 2019-09 and the 2020-12 support. The separate export is the mechanism that keeps the draft-07 users from paying the bundle and the generated-code cost of the newer features . The 2019-09 and the 2020-12 featuresโ€”the unevaluatedProperties, the unevaluatedItems, the dependentRequired, the dependentSchemas, and the dynamic referencesโ€”require the separate import, and the import is the mechanism that opts into the cost.

The TypeScript problem. Ajv’s TypeScript support is the mechanism that makes the compiled function a type guard. The ajv.compile<MyData>(schema) or the JSONSchemaType<MyData> annotation makes the validate(data) narrow the data type to MyData after the successful validation . The type guard is the mechanism that connects the runtime validation to the compile-time type, and the connection is the reason the TypeScript projects use Ajv.

The error problem. The validation function returns a boolean, and the validate.errors array holds the failure details. The errors are the open union, and the DefinedError type is the cast that makes the error handling type-safe . The keyword property is the tag, and the switch on the keyword is the mechanism that handles the specific error type.

The caching problem. The compilation is relatively slow, and the validation is very fast. The Ajv documentation states that the compiled functions are cached, and the same schema object returns the same compiled function . The caching is the mechanism that keeps the compilation cost to the once-per-schema, and the cache is the reason the repeated validation is the fast path.


a. The basic compilation and the validation

The basic flow is the three steps: the Ajv instance, the schema, and the compiled function. The new Ajv() creates the instance, the schema object is the definition, and the ajv.compile(schema) returns the validation function.

// The basic compilation
const Ajv = require("ajv");
const ajv = new Ajv(); // The options can be passed, e.g. { allErrors: true }

const schema = {
  type: "object",
  properties: {
    foo: { type: "integer" },
    bar: { type: "string" },
  },
  required: ["foo"],
  additionalProperties: false,
};

// The compile returns the validation function.
const validate = ajv.compile(schema);

const data = { foo: 1, bar: "abc" };

// The validate returns the boolean.
const valid = validate(data);

if (!valid) {
  // The validate.errors holds the failure details.
  console.log(validate.errors);
}

The validate function is the compiled code, and the validate(data) call is the fast path. The validate.errors is the array of the failure details, and it is overwritten on every call . The overwrite is the mechanism that the documentation warns about: the errors array reference must be copied if it is needed later, because the next validation call replaces the contents .

The ajv.validate(schema, data) is the shorthand that compiles the schema on the first call and validates the data. The shorthand is the convenience, but the documentation recommends the compile for the performance, because the shorthand re-checks the schema on every call . The compile is the mechanism that makes the compilation explicit, and the explicit compilation is the mechanism that keeps the validation fast.

// The shorthand
const valid = ajv.validate(schema, data);
if (!valid) console.log(ajv.errors);

// The compile (recommended for the performance)
const validate = ajv.compile(schema);
const validCompiled = validate(data);
if (!validCompiled) console.log(validate.errors);

b. The draft selection and the TypeScript integration

The draft selection is the import choice. The default export is the draft-07, and the ajv/dist/2019 and the ajv/dist/2020 are the newer drafts. The 2019-09 and the 2020-12 features are the unevaluatedProperties, the unevaluatedItems, the dependentRequired, the dependentSchemas, and the dynamic references .

// The draft-07 (default)
import Ajv from "ajv";
const ajv = new Ajv();

// The 2019-09 and the 2020-12
import Ajv2019 from "ajv/dist/2019";
const ajv2019 = new Ajv2019();

// The 2020-12 (the specific export)
import Ajv2020 from "ajv/dist/2020";
const ajv2020 = new Ajv2020();

The ajv/dist/2019 export supports the 2019-09 features, and the ajv/dist/2020 export supports the 2020-12 features. The 2019-09 support is the separate export because the features add the generated code even when they are not used, and the separation is the mechanism that keeps the draft-07 users from the cost . The ajv/dist/2020 is the specific 2020-12 export, and it is the import for the project that uses the prefixItems and the $defs.

The TypeScript integration is the JSONSchemaType utility. The type is the annotation on the schema, and the ajv.compile infers the type guard from the annotation.

// The TypeScript type guard
import Ajv, { JSONSchemaType } from "ajv";

interface MyData {
  foo: number;
  bar?: string;
}

const schema: JSONSchemaType<MyData> = {
  type: "object",
  properties: {
    foo: { type: "integer" },
    bar: { type: "string", nullable: true },
  },
  required: ["foo"],
  additionalProperties: false,
};

const ajv = new Ajv();
// The validate is a type guard for MyData.
const validate = ajv.compile(schema);

const data = { foo: 1, bar: "abc" };

if (validate(data)) {
  // The data is MyData here.
  console.log(data.foo);
} else {
  console.log(validate.errors);
}

The JSONSchemaType<MyData> is the annotation that makes the schema type-checked, and the ajv.compile(schema) infers the validate as the type guard . The nullable: true is the Ajv-specific extension for the nullable fields, and it is the mechanism that makes the TypeScript type match the schema. The strictNullChecks must be true for the type guard to work correctly .

The DefinedError is the type for the error handling. The validate.errors is the open union, and the cast to DefinedError[] is the mechanism that makes the switch on the keyword type-safe.

// The type-safe error handling
import { DefinedError } from "ajv";

if (!validate(data)) {
  for (const err of validate.errors as DefinedError[]) {
    switch (err.keyword) {
      case "type":
        // The err.params.type is the expected type.
        console.log(err.params.type);
        break;
      case "required":
        // The err.params.missingProperty is the missing field.
        console.log(err.params.missingProperty);
        break;
    }
  }
}

The keyword is the tag, and the params is the error-specific data. The type keyword’s params has the expected type, and the required keyword’s params has the missing property . The type-safe handling is the mechanism that makes the error display specific, and the specific display is the reason the user sees the actionable message.


Complete Example Session

// ============================================
// PART 1: THE BASIC COMPILATION
// ============================================

const Ajv = require("ajv");
const ajv = new Ajv();

const schema = {
  type: "object",
  properties: {
    foo: { type: "integer" },
    bar: { type: "string" },
  },
  required: ["foo"],
  additionalProperties: false,
};

const validate = ajv.compile(schema);

// ============================================
// PART 2: THE VALID DATA
// ============================================

const validData = { foo: 1, bar: "abc" };
const isValid = validate(validData);
// The isValid is true.
// The validate.errors is null.

// ============================================
// PART 3: THE INVALID DATA
// ============================================

const invalidData = { bar: "abc" };
const isInvalid = validate(invalidData);
// The isInvalid is false.
// The validate.errors holds the failure details.

// ============================================
// PART 4: THE ERROR ACCESS
// ============================================

if (!validate(invalidData)) {
  console.log(validate.errors);
  // The errors is the array of the failure details.
  // The errors is overwritten on the next call.
}

// ============================================
// PART 5: THE ALL ERRORS OPTION
// ============================================

const ajvAll = new Ajv({ allErrors: true });
// The allErrors: true collects every failure.
// The default is the first failure.

// ============================================
// PART 6: THE DRAFT SELECTION
// ============================================

import Ajv2020 from "ajv/dist/2020";
const ajv2020 = new Ajv2020();

const schema2020 = {
  type: "object",
  properties: { foo: { type: "integer" } },
  required: ["foo"],
  unevaluatedProperties: false,
};

const validate2020 = ajv2020.compile(schema2020);
// The 2020-12 export supports the unevaluatedProperties.

// ============================================
// PART 7: THE TYPESCRIPT TYPE GUARD
// ============================================

// The JSONSchemaType annotation
const schemaTyped: JSONSchemaType<MyData> = {
  type: "object",
  properties: {
    foo: { type: "integer" },
    bar: { type: "string", nullable: true },
  },
  required: ["foo"],
  additionalProperties: false,
};

const validateTyped = ajv.compile(schemaTyped);

// ============================================
// PART 8: THE TYPE-SAFE ERROR HANDLING
// ============================================

import { DefinedError } from "ajv";

if (!validateTyped(data)) {
  for (const err of validateTyped.errors as DefinedError[]) {
    switch (err.keyword) {
      case "type":
        console.log(err.params.type);
        break;
      case "required":
        console.log(err.params.missingProperty);
        break;
    }
  }
}

// ============================================
// PART 9: THE SHORTHAND
// ============================================

const valid = ajv.validate(schema, data);
if (!valid) console.log(ajv.errors);
// The shorthand compiles on the first call and validates.
// The compile is the explicit and the faster path.

// ============================================
// PART 10: THE CHECKLIST
// ============================================

// [ ] The Ajv instance is created.
// [ ] The schema is the plain object.
// [ ] The compile returns the validate function.
// [ ] The validate.errors holds the failure details.
// [ ] The allErrors: true collects every failure.
// [ ] The draft export is chosen for the schema draft.
// [ ] The JSONSchemaType is the TypeScript annotation.
// [ ] The DefinedError is the type-safe error handling.

The ten parts covered the basic compilation, the valid data, the invalid data, the error access, the allErrors option, the draft selection, the TypeScript type guard, the type-safe error handling, the shorthand, and the checklist. The through-line is that the compilation is the fast path, and the type guard is the TypeScript integration.


Quick Reference

The Ajv API

APIPurpose
new Ajv(options)Create the instance
ajv.compile(schema)Compile the schema to the validate function
validate(data)Validate the data, return the boolean
validate.errorsThe failure details, overwritten per call
ajv.validate(schema, data)The shorthand, compile and validate
ajv.addSchema(schema)Register the external schema
ajv.addFormat(name, format)Add the custom format
ajv.addKeyword(definition)Add the custom keyword

The draft exports

DraftImport
draft-07 (default)import Ajv from "ajv"
draft 2019-09import Ajv2019 from "ajv/dist/2019"
draft 2020-12import Ajv2020 from "ajv/dist/2020"
JTDimport Ajv from "ajv/dist/jtd"

The TypeScript types

TypePurpose
JSONSchemaType<T>The type-checked schema
DefinedErrorThe type-safe error union
The type guardThe validate(data) narrows the data

The common options

OptionPurpose
allErrorsCollect every failure
strictThe strict mode
useDefaultsAssign the defaults
coerceTypesCoerce the data to the type

Best Practices

โœ… Do This:

// Use the compile for the performance
const validate = ajv.compile(schema);                              // โœ…

// Copy the errors if they are needed later
const errors = validate.errors;                                    // โœ…

// Use the draft export for the newer schema
import Ajv2020 from "ajv/dist/2020";                               // โœ…

โŒ Don’t Do This:

// Use the shorthand in the hot path
ajv.validate(schema, data); // the compile check per call          // โŒ

// Assume the errors persist
validate(data1); validate(data2); console.log(validate.errors); // the data2 errors // โŒ

Common Pitfalls

PitfallWhy It HappensFix
The validation is slowThe shorthand is used in the loopUse the compile and reuse the function
The errors are from the wrong callThe validate.errors is overwrittenCopy the errors before the next call
The 2020-12 keyword is not recognizedThe default export is usedUse the ajv/dist/2020 export
The TypeScript type guard does not narrowThe strictNullChecks is falseEnable the option

Real-World Examples

1. The basic compile

const validate = ajv.compile(schema);

2. The validate

const valid = validate(data);

3. The errors

if (!valid) console.log(validate.errors);

4. The allErrors

const ajv = new Ajv({ allErrors: true });

5. The draft export

import Ajv2020 from "ajv/dist/2020";

6. The TypeScript annotation

const schema: JSONSchemaType<MyData> = { ... };

7. The type guard

if (validate(data)) { data.foo; }

8. The DefinedError

validate.errors as DefinedError[]

9. The addSchema

ajv.addSchema(addressSchema);

10. The custom format

ajv.addFormat("my-format", /^[A-Z]+$/);

Visual

The Compilation Flow

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  THE AJV COMPILATION                                         โ”‚
โ”‚                                                              โ”‚
โ”‚  The schema object                                           โ”‚
โ”‚         โ”‚                                                    โ”‚
โ”‚         โ–ผ                                                    โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                                    โ”‚
โ”‚  โ”‚ ajv.compile(schema) โ”‚  The code generation               โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                                    โ”‚
โ”‚             โ”‚                                                โ”‚
โ”‚             โ–ผ                                                    โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                                    โ”‚
โ”‚  โ”‚ The validate        โ”‚  The compiled function             โ”‚
โ”‚  โ”‚ function            โ”‚                                    โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                                    โ”‚
โ”‚             โ”‚                                                โ”‚
โ”‚             โ–ผ                                                    โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                                    โ”‚
โ”‚  โ”‚ validate(data)      โ”‚  The fast validation               โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                                    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

The Draft Selection

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  THE DRAFT IMPORT                                            โ”‚
โ”‚                                                              โ”‚
โ”‚  The schema draft                                            โ”‚
โ”‚         โ”‚                                                    โ”‚
โ”‚         โ–ผ                                                    โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                                    โ”‚
โ”‚  โ”‚ draft-07 โ†’ "ajv"    โ”‚  The default export                โ”‚
โ”‚  โ”‚ 2019-09 โ†’ "ajv/2019"โ”‚                                    โ”‚
โ”‚  โ”‚ 2020-12 โ†’ "ajv/2020"โ”‚                                    โ”‚
โ”‚  โ”‚ JTD โ†’ "ajv/dist/jtd"โ”‚                                    โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                                    โ”‚
โ”‚                                                              โ”‚
โ”‚  The import is the draft choice.                             โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

The TypeScript Type Guard

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  THE TYPE GUARD                                              โ”‚
โ”‚                                                              โ”‚
โ”‚  const validate = ajv.compile(schema);                       โ”‚
โ”‚         โ”‚                                                    โ”‚
โ”‚         โ–ผ                                                    โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                                    โ”‚
โ”‚  โ”‚ validate(data)      โ”‚  The boolean                       โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                                    โ”‚
โ”‚             โ”‚                                                โ”‚
โ”‚      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”                                         โ”‚
โ”‚      โ–ผ             โ–ผ                                         โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                                    โ”‚
โ”‚  โ”‚ true   โ”‚   โ”‚ false  โ”‚                                    โ”‚
โ”‚  โ”‚        โ”‚   โ”‚        โ”‚                                    โ”‚
โ”‚  โ”‚data is โ”‚   โ”‚errors  โ”‚                                    โ”‚
โ”‚  โ”‚MyData  โ”‚   โ”‚        โ”‚                                    โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                                    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Summary

ItemValue
The compilationajv.compile(schema) returns the validate function
The validationvalidate(data) returns the boolean
The errorsvalidate.errors holds the failure details, overwritten per call
The draft defaultdraft-07 with the main ajv export
The draft 2020-12ajv/dist/2020 export
The TypeScriptJSONSchemaType<T> and the type guard
The error typeDefinedError for the type-safe handling

Key takeaways:

  • Ajv compiles the schema into a JavaScript function. The ajv.compile(schema) returns the validate function, and the function is the fast path. The compilation is cached, and the same schema object returns the same function .
  • The validate.errors is overwritten on every call. The errors array is the failure details for the most recent validation, and it must be copied if it is needed later . The allErrors: true option is the mechanism that collects every failure instead of the first.
  • The draft support is the import choice. The default ajv export is draft-07, the ajv/dist/2019 is 2019-09, and the ajv/dist/2020 is 2020-12. The separate export is the mechanism that keeps the draft-07 users from the bundle and the generated-code cost of the newer features .
  • The TypeScript integration is the type guard. The JSONSchemaType<T> annotation makes the schema type-checked, and the validate(data) narrows the data type to T after the successful validation . The DefinedError is the type-safe error handling.
  • The shorthand ajv.validate is the convenience, not the performance path. The shorthand compiles the schema on the first call and re-checks the schema on every call. The compile is the explicit and the faster path for the hot validation .

Remember: Ajv is the JSON Schema compiler. The ajv.compile(schema) is the compilation, the validate(data) is the fast validation, and the validate.errors is the failure details. The draft support is the import choice, and the TypeScript integration is the type guard. The compilation is the once-per-schema cost, and the validation is the fast path. The errors are overwritten, and the copy is the mechanism that keeps them.

Was this helpful?


Stop using slow, ad-bloated tool sites! ๐Ÿคฎ

๐Ÿ”Ž Search “KandZ Tools” on Google to use many professional utilities for free.

KandZ.me is the ultimate minimalist hub for:
โœ… Finance (Mortgage, Interest, Inflation)
โœ… Tech (Base64, JSON, Dev Suite, IP)
โœ… Health (BMI, BMR, TDEE)
โœ… Productivity (Timer, Workspace, QR)

โšก๏ธ Fast & Private
๐Ÿ”’ No data leaves your device
๐Ÿ’Ž 100% Free

๐Ÿ”— Use it now: https://tools.kandz.me
๐Ÿ”– Bookmark itโ€”youโ€™ll need it later!