Overview
Kayston’s Forge provides powerful data transformation tools for developers working with structured data, lists, and database queries. All transformations run entirely in your browser with no external server calls.Data Format Converters
JSON to CSV
Convert JSON arrays of objects to CSV format. Automatically flattens nested objects.
CSV to JSON
Parse CSV files and convert to JSON arrays. Handles headers, dynamic typing, and empty lines.
CSV to SQL INSERT
Generate SQL INSERT statements from CSV data. Supports multiple SQL dialects.
SQL Formatter
Format SQL queries with proper indentation. Supports MySQL, PostgreSQL, SQLite, and more.
PHP to JSON
Convert PHP serialized data or PHP array syntax to JSON.
JSON to PHP
Convert JSON to PHP serialized format or PHP array syntax.
PHP Serializer
Serialize JSON data to PHP serialized format.
PHP Unserializer
Unserialize PHP data to readable JSON or PHP array syntax.
List & Text Tools
List Splitter
Split lists into batches or chunks. Supports custom delimiters and multiple output templates.
List Compare
Compare two lists to find intersection, union, differences, or unique items.
Text Separator
Change text delimiters (comma, newline, tab, semicolon, pipe, space). Sort or deduplicate.
Line Sort/Dedupe
Sort text lines alphabetically and remove duplicates. Case-insensitive deduplication.
String Case Converter
Convert strings between camelCase, snake_case, kebab-case, PascalCase, SCREAMING_SNAKE_CASE, and Title Case.
JSON ↔ CSV Conversion
Convert between JSON arrays and CSV for spreadsheet compatibility. JSON to CSV ExampleThe JSON to CSV converter automatically flattens nested objects using dot notation (e.g.,
address.city becomes a column).CSV to SQL INSERT
Generate INSERT statements from CSV data with support for multiple SQL dialects. Example- MySQL / MariaDB
- PostgreSQL
- SQLite
- Microsoft SQL Server
- Oracle
SQL Formatting
Format SQL queries with proper indentation and keyword capitalization. Example- SQL (standard)
- MySQL
- PostgreSQL
- MariaDB
- SQLite
- BigQuery
- Snowflake
- Redshift
- Spark
- and more…
PHP Data Conversion
Kayston’s Forge includes full support for PHP serialized data and PHP array syntax. PHP Serialize to JSONThe PHP parser supports both
array() and [] syntax. It handles nested arrays, objects, and preserves data types (strings, integers, booleans, null).List Comparison
Compare two lists to find relationships between datasets. Example: Intersection (items in both lists)- Intersection - Items in both lists
- Union - All unique items from both lists
- A - B - Items only in list A
- B - A - Items only in list B
- Symmetric Difference - Items in either list but not both
List Splitter
Split lists into equal-sized batches or chunks. Example: Split into Groups of 3- Plain Text - Simple grouped output
- JSON Array -
[["apple", "banana", "cherry"], ["date", "eggfruit", "fig"]] - Numbered List - Groups with numeric prefixes
- Items per Group - Fixed number of items per group
- Number of Groups - Distribute items evenly across N groups
Text Separator
Change delimiters in delimited text. Example: Comma to Newline- Newline (
\n) - Comma (
,) - Comma + Space (
,) - Semicolon (
;) - Tab (
\t) - Space
- Pipe (
|) - Custom (any string)
- Sort - Sort items alphabetically
- Unique - Remove duplicates
- Count - Show item count
Line Sort/Dedupe
Sort text lines and remove duplicates with advanced options. Example- Sort Ascending - A-Z
- Sort Descending - Z-A
- Dedupe Only - Remove duplicates without sorting
- Dedupe + Sort - Remove duplicates then sort
Deduplication is case-insensitive and preserves the first occurrence of each unique line.
String Case Converter
Convert between common programming case conventions. Example- camelCase - First word lowercase, rest capitalized
- PascalCase - All words capitalized
- snake_case - Lowercase with underscores
- kebab-case - Lowercase with hyphens
- SCREAMING_SNAKE_CASE - Uppercase with underscores
- Title Case - Space-separated with capitalized words
Best Practices
CSV Headers Always include a header row in CSV files for proper column mapping. The CSV to JSON and CSV to SQL tools use the first row as field names. SQL Dialect Selection Choose the correct SQL dialect for your database:- MySQL - Uses backticks for identifiers
- PostgreSQL - Uses double quotes for identifiers, supports advanced types
- SQLite - Simpler syntax, fewer data types
- SQL Server - Uses square brackets for identifiers
Keyboard Shortcuts
Cmd/Ctrl + Enter- Execute transformationCmd/Ctrl + Shift + C- Copy outputCmd/Ctrl + K- Switch tools
Related Tools
- JSON Format/Validate - Validate and format JSON
- HTML to JSX - Convert HTML to React JSX
- Markdown Preview - Render Markdown to HTML