ToolsCandy

XSD Generator — Free & Private

Generate an XML Schema (XSD) from a sample XML document — infers types, attributes, and repeating elements.

Your data never leaves your browser

XML sample
Generated XSD schema

About this tool

Type inferenceTarget namespaceOptional elementsDownload XSDLive preview

How to use

  1. Paste a representative XML sample.
  2. Set target namespace and element form defaults if needed.
  3. Copy or download the generated XSD schema.

Examples

Book catalog

<catalog><book id="bk101"><title>Example</title></book></catalog>
xs:schema with complexType sequence and attribute definitions

FAQ