Skip to main content

SAML Metadata Generator

Generate SP or IdP SAML 2.0 metadata XML — client-side, nothing uploaded

SP details

Metadata XML

<?xml version="1.0"?>
<EntityDescriptor
  xmlns="urn:oasis:names:tc:SAML:2.0:metadata"
  entityID="https://sp.example.com/saml/metadata">
<SPSSODescriptor AuthnRequestsSigned="false" WantAssertionsSigned="true" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
  <SingleLogoutService
    Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
    Location="https://sp.example.com/saml/sls"/>
  <NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:persistent</NameIDFormat>
  <AssertionConsumerService
    Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
    Location="https://sp.example.com/saml/acs"
    index="0" isDefault="true"/>
  </SPSSODescriptor>
</EntityDescriptor>

About the Saml Metadata Generator

SAML metadata is the XML contract between an SP and an IdP: entity IDs, endpoint URLs, NameID formats, and the signing certificates. Hand-writing it is error-prone — one wrong binding URI or a certificate pasted with headers breaks the trust exchange — and most online generators receive your real endpoints and certificates on a server.

This generator produces standards-compliant SAML 2.0 metadata for either side of the flow. Fill in the entity ID and endpoints, pick a NameID format, optionally paste your signing certificate (the PEM body is embedded into the KeyDescriptor), and download the XML. Element ordering follows the SAML metadata schema so strict parsers accept the result, and everything is assembled in your browser.

How to use

  1. Choose SP or IdP depending on which side you operate.
  2. Enter your entityID (usually your metadata URL) and the ACS/SSO and SLO endpoints.
  3. Paste your signing certificate PEM so partners can validate your signatures.
  4. Download or copy the generated metadata and register it with your IdP or SP.

Frequently Asked Questions

What is a SAML metadata file?

An XML document describing a SAML entity to its partners: its entityID (unique name), endpoint URLs (where assertions are delivered for an SP, where login requests go for an IdP), supported NameID formats, and signing certificates in KeyDescriptor elements. SPs and IdPs exchange metadata to establish trust — often by uploading the file or pasting its URL into admin consoles like Okta, Entra ID, or Keycloak.

Is the generated metadata complete enough for production?

It covers what a standard SP/IdP pairing needs: entityID, ACS/SSO and SLO endpoints, NameID format, signing certificate, and the WantAssertionsSigned/AuthnRequestsSigned flags, with schema-correct element ordering. Enterprise IdPs may also want organization details, contact persons, or encryption certificates — add those before production. The XML is a correct starting point, generated locally from your values.

Is this tool free to use?

Yes! This tool is 100% free. No signup, no credit card, no limits. It's part of Formatho's privacy-first developer toolkit.

Is my data safe? Does this tool send data to a server?

Absolutely. This tool runs entirely in your browser. Your data never leaves your device. Zero server-side processing, zero tracking.