免费的 SQL 转 ER 图工具,浏览器内运行,无需上传任何内容。
Free SQL→ER diagram tool, runs in the browser, nothing uploaded

原始链接: https://sqltoerdiagram.com/

**SQL 转 ER 图**是一款免费、开源的网页工具,可将 SQL `CREATE TABLE` 语句即时转换为交互式实体关系图 (ERD)。它支持 PostgreSQL、MySQL、SQLite 和 SQL Server 等主流 SQL 方言。 该工具完全基于浏览器运行,确保了隐私安全:无需上传数据、无需注册账户、无需安装程序。用户可以通过拖拽表格来自定义布局、添加注释,并可视化查看主外键关系。完成后的图表可以导出为高分辨率的 PNG 或 SVG 文件,或通过共享链接保存。这是一款高效、安全且易于使用的数据库可视化解决方案。

开发者 robhati 推出了 **sqltoerdiagram.com**,这是一个基于浏览器的数据库模式可视化工具,无需注册账号,也无需上传数据到服务器。 主要功能包括: * **隐私性**:数据不会离开用户的电脑;模式会直接序列化到 URL 中,无需后端即可轻松共享。 * **性能**:基于 HTML5 `` API 而非 DOM/SVG 构建,通过视口剔除(viewport culling)和位图缓存技术,可以流畅处理数百张数据表。 * **智能解析**:解析器通过追踪每个标记的源跨度,保留了原始格式和注释。 * **技术选择**:开发者曾尝试使用 Rust/WASM,但最终选择了纯 JavaScript(压缩后仅约 32KB),因为对于该特定用例而言,JS 与 WASM 交互带来的开销抵消了性能提升。 该项目已开源,开发者近期修复了 GitHub 链接的相关导航问题。代码可在 [github.com/royalbhati/sqltoerdiagram](https://github.com/royalbhati/sqltoerdiagram) 查看。
相关文章

原文
SQL to ER Diagram — Free Online ERD Generator from SQL (no signup)

Paste SQL, see the schema.

Drop your CREATE TABLE statements on the left. Drag tables, scroll to zoom, double-click to rename, export when done.

100% local — your schema never leaves your browser. No accounts, no uploads.

SQL to ER Diagram — free online ERD generator

SQL to ER Diagram is a free, open-source tool that converts a SQL schema into an interactive entity-relationship diagram (ERD) right in your browser. Paste your CREATE TABLE statements and instantly visualize tables, columns, primary keys, foreign keys and relationships. Works with PostgreSQL, MySQL, SQLite and SQL Server. Drag tables, auto-arrange the layout, add notes, and export to PNG or SVG. Nothing is uploaded — your schema stays on your machine.

Frequently asked questions

How do I create an ER diagram from SQL?

Paste your SQL CREATE TABLE statements into the editor and SQL to ER Diagram instantly renders an interactive entity-relationship diagram. Drag tables to arrange them, then export as PNG or SVG.

Which SQL dialects are supported?

It parses standard CREATE TABLE and ALTER TABLE DDL and works with PostgreSQL, MySQL, SQLite and SQL Server syntax, including primary keys, foreign keys, unique and not-null constraints.

Is it free?

Yes. SQL to ER Diagram is completely free and open source, with no account or sign-up required.

Is my data private? Does my SQL get uploaded?

Everything runs locally in your browser. Your SQL schema is never uploaded to or stored on any server.

Can I export the diagram?

Yes. You can export a high-resolution PNG or a vector SVG, save the full project as a file, or copy a shareable link that encodes the diagram in the URL.

Do I need to install anything?

No installation needed. It runs entirely in your web browser on both desktop and mobile.

联系我们 contact @ memedata.com