ToolKH Logo
ToolKH
Database Schema Visualizer & ERD Generator

SQL to Table Diagram Visualizer

Instantly convert raw CREATE TABLE SQL scripts into interactive, draggable database schema diagrams. Visualize foreign key relations, inspect data types, and export as JPG image or PDF document.

SQL Input Script

Schema Metadata Summary

4Tables
20Columns
3FK Links
100%
authors
5 cols
๐Ÿ”‘ PKauthor_id
int
โšก Uusername
varchar(60)
โšก Uemail
varchar(120)
bio
text
created_at
timestamp
topics
3 cols
๐Ÿ”‘ PKtopic_id
int
topic_name
varchar(80)
โšก Uslug
varchar(80)
posts
7 cols
๐Ÿ”‘ PKpost_id
int
title
varchar(255)
โšก Uslug
varchar(255)
content
text
๐Ÿ”— FKauthor_id
int
๐Ÿ”— FKtopic_id
int
published_at
timestamp
comments
5 cols
๐Ÿ”‘ PKcomment_id
int
๐Ÿ”— FKpost_id
int
author_name
varchar(100)
body
text
created_at
timestamp

Key Features & Capabilities

Everything you need to visualize, design, analyze, and export database schemas completely client-side.

โšก

Instant SQL to ERD Parsing

Parse raw CREATE TABLE statements from MySQL, PostgreSQL, SQLite, and SQL Server with automatic depth scanning.

๐Ÿ”—

Automatic Foreign Key Mapping

Automatically links referenced columns with smooth Bezier curves, interactive hover highlights, and 1:N cardinality badges.

๐Ÿ–๏ธ

Interactive & Draggable Canvas

Drag and reposition table cards freely across the canvas, zoom in/out from 60% to 150%, and filter tables or columns instantly.

๐Ÿ–ผ๏ธ

Retina JPG & PDF Exports

Export high-resolution 2x retina JPG images and vector-backed A4 landscape PDF documents matching your exact canvas layout.

๐ŸŽจ

Customizable Canvas Backgrounds

Switch between Dark Grid, Clean Light, Blueprint Navy, and Solid Obsidian backgrounds for presentation or printing.

๐Ÿ“œ

Mermaid.js & DBML Code Export

Instantly generate Mermaid ERD syntax and DBML scripts ready to copy directly into Notion, GitHub, or documentation tools.

Sign in to save
โค๏ธ

Save this tool to your Favorites

Sign in with Google to bookmark tools and access them quickly from your Favorites tab.

Share this tool

Love using this tool? Help others discover it by sharing on your favorite platforms!

Help us improve this tool!

Found a bug, want a new option, or have suggestions for Khmer Unicode formatting? Share your comments and help us improve.

Discussion

0

Join the discussion

Sign in to leave feedback, ask questions, or report bugs. Your input helps improve this tool!

No comments yet. Be the first to share your thoughts!