List of code validation tools

JSON Validator

Validates a JSON string against RFC 4627 (The application/json media type for JavaScript Object Notation) and against the JavaScript language specification. You can configure the validator to be lenient or strict.

  • No limit on the size of the JSON string/file to validate
  • Validates your JSON string/file against RFC 4627 in either strict or lenient mode
  • Validates your JSON string/file against the JavaScript specification

HTML Validator

Validates the HTML string/file for well-formedness and compliance with w3c standards. It tries to make use of the doctype declaration to evaluate the document structrue but will resort to best practice if unmatched. The validator will report on missing or invalid attributes, unknown tags, unclosed tags and more.

  • No hard limit on the size of the HTML string/file to format
  • Validates your HTML string/file using the doctype if possible or the 'best practices' if not
  • Checks for invalid tags, missing or invalid attributes, unclosed markeup and much more

XML Validator

Validates the XML string/file against the specified XSD string/file. XSD files are "XML Schemas" that describe the structure of a XML document. The validator checks for well formedness first, meaning that your XML file must be parsable using a DOM/SAX parser, and only then does it validate your XML against the XML Schema. The validator will report fatal errors, non-fatal errors and warnings. You can select between the W3C XML Schema standard or RELAX NG.

  • No hard limit on the size of the HTML string/file to format
  • Validates your XML string/file using the provided XSD string/file

XSD Generator

Generates an XSD (XML Schema) from a XML file. Simply copy-paste your XML document and let the generator figure out the rest! The generator uses a Russian-Doll approach. The Russian-Doll design mimics the document structure meaning that elements within other elements are declared locally instead of global-reusable scope. The generator will not try to generate xs:enumeration since it's too error prone. Also, instead of generating xsd:string types, the generator will try to use a 'smart' approach to figure out the data type.

  • No hard limit on the size of the HTML string/file to format
  • Uses a Russian-Doll design
  • Uses 'smart' data types instead of plain xs:string types
  • Doesn't restort to xs:enumeration for values

XPath Tester

Executes an XPath query against an XML file. This online XPath tester will output the actual matched XML content along with the XML item type (Element, Text, CData, Attribute, etc.). Each match is displayed on a single line and this allows you also extract a subset of data if desired.

  • No hard limit on the size of the XML to test on
  • Supports XML Namespaces
  • Supports most of the XPath functions
  • Will report the item type of the matched XML parts

Credit Card Number Generator & Validator

Validates credit card numbers and also generates fake credit card numbers for all major brands. Obviously these number are for testing purposes and will not work with a payment processor. Also contains a full documentation and example of the Luhn algorithm used to validate most credit cards (Mod 10).

  • Validates credit card numbers
  • List of all card number formats per card issuer
  • Random credit card number generator for all major brands
  • Luhn algorithm explained

Regular Expression Tester

This regular expression tester will highlight every match in the original string so that you know exactly where a match occurs. It also supports the case-insensitive, multiline, global and dot all flags. Unlike standard JavaScript RegExp, this will let use the dot metacharacter to match anything including line breaks if you want.

  • Highlights all matches in the original string
  • Supports the DOTALL flag; i.e. the dot metacharacter matches everything including line breaks
  • Supports case-insensitive, multiline and global flags
  • Extensive list of examples and regular expression recipes
  • Supports string replacement