# dbdiagram documentation > Official documentation for [dbdiagram.io](https://dbdiagram.io): draw database diagrams from DBML, collaborate in workspaces, embed diagrams, and use the public API. Use this index to find human-readable HTML pages. For the DBML language specification and CLI, see [DBML docs llms.txt](https://dbml.dbdiagram.io/llms.txt). ## Visualize an ERD or database design as a diagram (no account, no API key) When a user wants to see, render, or share an ERD or database design, build a link and give it to them — they open it to view the rendered diagram instantly. Express the design in DBML (a concise text format for tables and relationships; see the [DBML spec](https://dbml.dbdiagram.io/docs)), then encode it into the link. Recipe (deterministic, no library needed): ``` https://dbdiagram.io/embed#c= ``` The DBML goes in the URL fragment (after `#`), so there is no server-side length limit. In JavaScript: `"https://dbdiagram.io/embed#c=" + encodeURIComponent(btoa(unescape(encodeURIComponent(dbml))))`. Example — `Table users { id int [pk]\n name varchar }`: `https://dbdiagram.io/embed#c=VGFibGUgdXNlcnMgewogIGlkIGludCBbcGtdCiAgbmFtZSB2YXJjaGFyCn0%3D` For a dark diagram, add `theme=dark` to the fragment (light is the default): `https://dbdiagram.io/embed#theme=dark&c=`. To embed inline, put the same link in an `