GST check digit validation algorithm2 min read

GST number validation is done through 2 steps

  1. Check if there is a character in position of a character and a number in position of a number.
  2. Validate the check digit that is the last character in the GST no. with  Luhn mod N algorithm (

An implementation in javascript


true  is returned if the is valid. false  if not.

Comment below if you have any questions.

Leave a comment

Your e-mail address will not be published. Required fields are marked *