Overview
Kayston’s Forge provides powerful formatting and beautification tools for web developers. All formatting happens in your browser with no data sent to external servers.Code Beautifiers
HTML Beautify/Minify
Format HTML with proper indentation or minify to remove whitespace and comments.
CSS Beautify/Minify
Format CSS with consistent indentation or minify to reduce file size.
JavaScript Beautify/Minify
Format JavaScript/TypeScript with proper indentation or minify with Terser for production.
XML Beautify/Minify
Format and validate XML documents or minify to remove whitespace.
LESS Beautify/Minify
Format LESS stylesheets with proper indentation or minify.
SCSS Beautify/Minify
Format SCSS/Sass stylesheets with proper indentation or minify.
ERB Beautify/Minify
Format Ruby ERB templates with proper indentation.
Format Converters
YAML to JSON
Convert YAML documents to JSON format. Supports multi-document YAML files.
JSON to YAML
Convert JSON to clean, readable YAML format.
Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal bases.
Color Converter
Convert between HEX, RGB, RGBA, HSL, HSLA, and HSV color formats.
SVG to CSS
Embed SVG as CSS background-image using Base64 or URL encoding.
Hex to ASCII
Convert hex byte sequences to ASCII/UTF-8 text.
ASCII to Hex
Convert ASCII/UTF-8 text to hex byte representation.
cURL to Code
Convert cURL commands to JavaScript fetch, Python requests, or PHP cURL code.
JSON to Code
Generate TypeScript interfaces, Python dataclasses, Go structs, or Rust structs from JSON.
HTML Beautification
The HTML beautifier intelligently indents tags and handles void elements correctly. Example: BeautifyThe minifier removes HTML comments and collapses whitespace between tags. Whitespace inside text nodes is preserved.
CSS/LESS/SCSS Formatting
All CSS-based tools share the same beautifier engine with proper indentation of rules and properties. Example: BeautifyJavaScript Minification
The JavaScript minifier uses Terser, the industry-standard minifier for production builds. ExampleYAML ↔ JSON Conversion
The YAML to JSON converter supports:- Multi-document YAML files (outputs JSON array)
- Comments (stripped during conversion)
- Complex nested structures
- Arrays and objects
Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal. Input format:value|base
Example
The converter supports negative numbers and uses BigInt for arbitrary precision.
Color Converter
Convert between all major color formats with automatic detection. Supported Formats- HEX:
#ff5733,#f57(shorthand),#ff5733aa(with alpha) - RGB:
rgb(255, 87, 51),rgba(255, 87, 51, 0.8) - HSL:
hsl(9, 100%, 60%),hsla(9, 100%, 60%, 0.8) - HSV:
hsv(9, 80%, 100%),hsva(9, 80%, 100%, 0.8)
SVG to CSS Embedding
Embed SVG graphics as CSSbackground-image data URLs.
Example: Base64 Encoding
cURL to Code Conversion
Paste any cURL command and convert it to working code in JavaScript, Python, or PHP. Example InputJSON to Code Generation
Generate strongly-typed data structures from JSON. Example InputHex ↔ ASCII Conversion
ASCII to HexThe hex converter supports UTF-8 encoding and handles multibyte characters correctly.
Best Practices
Minify for Production Only Always keep beautified source files for development. Only minify code for production deployment to:- Reduce file size and bandwidth
- Improve page load performance
- (JavaScript only) Obfuscate variable names
Keyboard Shortcuts
Cmd/Ctrl + Enter- Execute format/conversionCmd/Ctrl + Shift + C- Copy outputCmd/Ctrl + K- Switch tools
Related Tools
- JSON Format/Validate - Format and validate JSON with loose parsing
- SQL Formatter - Format SQL queries with dialect support
- Markdown Preview - Render Markdown to sanitized HTML