formatting

85 tools tagged "formatting".

API Response Formatter

Pretty-print a raw API response's JSON body, headers and all.

Open tool

JavaScript Formatter

Format and beautify JavaScript with consistent indentation and style.

Open tool

CSS Formatter

Format and beautify CSS with consistent indentation and spacing.

Open tool

HTML Formatter

Format and beautify HTML with consistent indentation and structure.

Open tool

PHP Formatter

Format and beautify PHP with consistent indentation and style.

Open tool

Ruby Formatter

Reindent Ruby code by its def/class/if/end block structure.

Open tool

TOML Formatter

Format and normalize TOML by parsing and re-serializing it.

Open tool

Python Formatter

Normalize Python whitespace: tabs, trailing spaces, and blank lines.

Open tool

Java Formatter

Reindent Java code by its brace nesting depth.

Open tool

C Formatter

Reindent C code by its brace nesting depth.

Open tool

Go Formatter

Reindent Go code by its brace nesting depth.

Open tool

Rust Formatter

Reindent Rust code by its brace nesting depth.

Open tool

SQL Formatter

Reflow SQL into indented, clause-per-line formatting with keyword casing.

Open tool

Hex Number Splitter

Split one hex string into fixed-size chunks, one chunk per output line.

Open tool

Hex Value Padder

Left-pad every hex value in a list with zeros to a fixed digit width.

Open tool

Hex Value Truncator

Truncate every hex value in a list to at most N digits, keeping the leftmost digits.

Open tool

JSON Double Quote Converter

Convert single-quoted JS-object-literal-like text back into valid double-quoted JSON.

Open tool

JSON Formatter & Beautifier

Format and beautify messy JSON with proper indentation.

Open tool

JSON Syntax Highlighter

Add syntax-colored highlighting to JSON for docs, blogs, and slides.

Open tool

JSON Object Key Sorter

Recursively sort every object's keys alphabetically, ascending or descending.

Open tool

JSON Single Quote Converter

Replace every structural double quote in pretty-printed JSON with a single quote.

Open tool

JSON Spacing Adder

Format JSON so purely-scalar objects/arrays collapse onto one padded line, others stay multi-line.

Open tool

Markdown Formatter & Pretty Printer

Normalize heading spacing, list markers, and blank lines in Markdown.

Open tool

Markdown Escaper

Backslash-escape Markdown's special characters so literal text renders as-is.

Open tool

Markdown Unescaper

Remove backslashes added to protect Markdown's special characters.

Open tool

String Center Aligner

Center every line within a fixed-width column, padding both sides.

Open tool

Column Text Converter

Collapse fixed-width columnar text back into a single flowing list of values.

Open tool

String Left Padder

Pad text on the left to reach a target length.

Open tool

Line Quoter

Wrap every individual line in your text with a quote character.

Open tool

Line Unquoter

Strip a quote character from both sides of every quoted line.

Open tool

Printf Tool

Substitute %s/%d/%f placeholders in a printf-style format string.

Open tool

String Right Aligner

Right-align every line within a fixed-width column using spaces.

Open tool

String Right Padder

Pad text on the right to reach a target length.

Open tool

Spaces to Tabs

Replace runs of 4 spaces with tab characters.

Open tool

Tabs to Spaces

Replace every tab character with 4 spaces.

Open tool

Text Box Drawer

Draw a box-drawing-character border around text, sized to fit the longest line.

Open tool

Text Columnizer

Arrange whitespace-separated values into fixed-width aligned columns.

Open tool

Text Spacing Increaser

Insert extra spaces between every character to visually widen your text.

Open tool

Text Spacing Normalizer

Trim edges and collapse runs of spaces or tabs down to a single space.

Open tool

Text Spacing Randomizer

Replace the space between each pair of words with a random number of spaces.

Open tool

Word Quoter

Wrap every individual word in your text with a quote character.

Open tool

Word Unquoter

Strip a quote character from both sides of every quoted word.

Open tool

XML Prettifier

Prettify minified or messy XML into clean, indented markup.

Open tool

XML Minifier

Strip whitespace from XML to shrink it down to the smallest valid form.

Open tool

XML Syntax Highlighter

Highlight XML syntax and export it as portable, self-contained HTML.

Open tool

XML Editor

Edit XML in place with live well-formedness feedback and one-click formatting.

Open tool

XML Syntax Changer

Switch every empty element between self-closing (<a />) and explicit open/close (<a></a>) style.

Open tool

XML Double Quote Converter

Re-write every XML attribute value using double quotes, the more common XML convention.

Open tool

XML Single Quote Converter

Re-write every XML attribute value using single quotes.

Open tool

YAML to Canonical Normalizer

Re-serialize YAML into a consistent, alphabetized, comment-free, diff-friendly form.

Open tool

YAML Comment Remover

Strip every comment from a YAML document, leaving just the data.

Open tool

YAML Formatter & Prettifier

Prettify messy or flow-style YAML into clean, indented block style.

Open tool

Change All Quotes to Double Quotes

Re-quote every YAML string, keys and values, with double quotes.

Open tool

Change All Quotes to Single Quotes

Re-quote every YAML string, keys and values, with single quotes.

Open tool

YAML Sorter

Recursively sort every YAML mapping's keys alphabetically.

Open tool

YAML Comment Replacer

Replace text inside YAML comments everywhere it appears, leaving the data untouched.

Open tool

Prettier Config Generator

Generate a .prettierrc and matching .prettierignore from printWidth, quotes, semicolons, and trailing commas.

Open tool

EditorConfig Generator

Generate a .editorconfig file with per-glob indent style, indent size, charset, line endings, and whitespace rules.

Open tool

Integer Center Aligner

Center-align a list of integers into one monospace block, padded to the list's widest value.

Open tool

Integer Left Padder

Left-pad every integer in a list with zeros up to a target width.

Open tool

Integer Right Aligner

Right-align a list of integers into one monospace block, padded to the list's widest value.

Open tool

Integer Right Padder

Right-pad every integer in a list with trailing zeros up to a target width.

Open tool

List Item Bullet Adder

Prefix every list item with a bullet character (•, -, or *) you choose.

Open tool

List Item Bullet Remover

Strip a leading bullet character (•, -, *, and common variants) from every list item that has one.

Open tool

List Item Indenter

Prepend a chosen indent string (default two spaces) once to every item in a list.

Open tool

List Item Joiner

Join list items into a single string using a configurable glue, like Array.prototype.join(), e.g. " | " turns a, b, c into a | b | c.

Open tool

List Item Prefix Adder

Prepend a chosen text string to the start of every item in a list, with a configurable separator.

Open tool

List Item Prefix Remover

Strip a chosen text string from the start of every list item that has it, with a configurable separator.

Open tool

List Item Quoter

Wrap every item in a list in single or double quotes.

Open tool

List Item Suffix Adder

Append a chosen text string to the end of every item in a list, with a configurable separator.

Open tool

List Item Suffix Remover

Strip a chosen text string from the end of every list item that has it, with a configurable separator.

Open tool

List Item Trimmer

Trim leading and trailing whitespace from every item in a list.

Open tool

List Item Unquoter

Strip surrounding matching quotes (single or double) from every list item that has them.

Open tool

List Item Unwrapper

Strip a chosen prefix string and suffix string from every list item that has both.

Open tool

List Item Wrapper

Wrap every list item with a chosen prefix and suffix string, like "(" and ")".

Open tool

List Left-Padder

Pad every item in a list on the left to a fixed width using a chosen fill character.

Open tool

List Length Changer

Change a list to an exact target length, padding with a filler value or truncating as needed.

Open tool

List Right-Padder

Pad every item in a list on the right to a fixed width using a chosen fill character.

Open tool

List Separator Changer

Parse a list using one separator and rejoin it using a different one, e.g. newline-separated to comma-separated.

Open tool

List Separator Normalizer

Split messy input that mixes commas, semicolons, newlines, and tabs inconsistently, then rejoin it with one clean separator.

Open tool

List Separator Remover

Remove the separators entirely, concatenating every list item directly together into one unbroken blob.

Open tool

List Skewer

Progressively increase indentation per item, creating a staircase/skewed visual shape.

Open tool

List to Columns Converter

Lay a list out into N side-by-side, monospace-padded text columns, reading down each column then across.

Open tool

List to Rows Converter

Lay a single-column list out into a grid of N items per row, each row's items joined by a configurable glue.

Open tool

Binary Padder

Pad a binary string to a target length with a chosen bit, on the left or right.

Open tool