Code Formatter & 200+ Free Online Tools

Format code, convert files, edit media and more — free, fast and easy to use.

Browse categories

Code Formatters

Format and beautify Java, Python, JavaScript, JSON, HTML and more; adjust indentation, spacing and line breaks.

More tools

JSON & Data Tools

Inspect, compare and validate JSON; test JSONPath expressions, or convert data to CSV, YAML and XML.

More tools

Spreadsheet Tools

Open and edit CSV or Excel sheets, format tabular text, and convert CSV to Excel or SQL.

Markdown Tools

Write and preview Markdown, render Mermaid diagrams, and convert Markdown, HTML and tables between formats.

Text Tools

Compare passages, count words and keywords, sort or replace lines, and view DOCX text.

Audio Conversion & Playback

Convert between MP3, WAV, FLAC and more, play audio or raw PCM, and inspect or edit audio metadata.

Audio Editing & Effects

Trim, join or split recordings, remove silence or noise, and adjust volume, speed, pitch or channels.

More tools

Speech Tools

Transcribe audio to text, generate speech from text, or record your voice in the browser.

Video Tools

Convert and compress video, trim or join clips, resize frames, and extract audio.

More tools

Video Playback & Recording

Play local or streaming video, record your screen or camera, and use your camera as an online mirror.

PDF Tools

Compress or merge PDFs, split and rearrange pages, convert pages to images, and view or compare documents.

More tools

Image Tools

Convert image formats, resize or crop photos, compress files, compare pictures, and extract text with OCR.

More tools

Image Creation

Capture and beautify screenshots, turn text into images or GIFs, draw on a whiteboard, and create word clouds or favicons.

Subtitle Tools

Edit SRT or VTT captions with a video preview, shift timing, convert formats, and manage subtitle tracks.

Archive Tools

Open ZIP, 7Z, RAR or TAR files, extract selected contents, and create new archives with optional ZIP/7Z passwords.

Encoders | Decoders

Encode and decode Base64 or Base32, escape URLs, HTML and Unicode text, and inspect JWT contents.

More tools

Number Tools

Convert number bases and values between binary, decimal and hex; turn numbers into words or text into binary.

Calculators

Work out percentages and fractions, summarize statistics, and calculate grades, discounts or aspect ratios.

Time Tools

Show an online clock, run a countdown or stopwatch, and calculate dates, ages or time-zone differences.

Network Tools

Check your IP and IPv6 connection, inspect HTTP requests or HAR files, and calculate CIDR address ranges.

Unit Conversions

Convert length, weight, temperature, data storage and other units.

Color Tools

Convert HEX, RGB and HSL values, extract colors from an image, check contrast, or test your display with solid colors.

QR Codes & Barcodes

Generate and scan QR codes or barcodes, including QR codes for links and Wi-Fi networks.

Developer & Security Tools

Generate hashes, UUIDs and passwords, test regular expressions, create URL slugs and check file permissions.

More tools

Utility Tools

Check screen resolution and refresh rate, measure with a screen ruler, test keys, or read from a teleprompter.

Games

2048, Minesweeper, Sudoku, Gomoku, Tank Battle

More tools

Code formatter FAQ

What is Formatter?

Formatter is a free online code formatter and code beautifier for C/C++, Java, Python, JavaScript, JSON, HTML, CSS, and more. To format and indent code online, search for your language or browse Code Formatters, open its tool page, then paste code or load a file if supported, choose available options, and select Format to beautify code. Review the result before copying or saving it. Formatting adjusts indentation, spacing, and line wrapping; it does not fix syntax errors or run the code. Formatter also provides text tools, image, audio, and video converters, and PDF tools for everyday file tasks.

Which code formatter should I use?

Choose the formatter for your input language or format: C/C++, Java, Python, JavaScript, JSON, HTML, CSS, SQL, TypeScript, and XML each have their own page. Start with that page's default settings, then adjust indentation, style, or wrapping only when those controls are available or your project requires it.

Does formatting fix syntax errors or change what the code does?

No. Formatting adjusts layout such as indentation, spacing, and line wrapping. The input still needs to be valid for the selected language, and you should review the result before using it.

How does a code formatter work?

A code formatter reads language-aware tokens and nested structures, then rewrites indentation, spacing, and line breaks according to a consistent rule set. It does not compile or run the program, so formatting is not a correctness or security check.

How can I find the right tool?

Search by task or file type, then open the tool that matches your input and desired result. Use JSON Formatter to format JSON, or JSON Schema Validator to check it against a schema. Audio Converter changes MP3, WAV, and other audio formats; Audio Splitter and Reverse Audio edit clips, while Video to Audio extracts sound from video. Video Converter or Video Compressor handles video; PDF Compressor changes file size, while Merge PDF, Split PDF, and PDF Page Organizer handle pages. Image Converter, Image Resizer, and Image Compressor handle images. Archive Extractor opens ZIP, 7Z, RAR, and TAR; Speech to Text and Text to Speech handle transcription and voice generation. Each tool page lists its supported formats and options.

Will my files and code be uploaded?

Most tools process files and code in your browser without uploading them. Some code formatters send code to the server and delete it immediately after processing.

Are the tools free, and do I need an account?

The tools are free to use and do not require registration.

Where are my favorite tools saved, and how can I remove them?

Favorites are saved only in this browser, without an account or server sync. Add or remove one with the Favorite button on its tool page, or remove it beside the Favorites list on the home page. Clear favorites removes all favorites; clearing browser data also removes them.

Can I use these tools on a phone or tablet?

Yes. The layout adapts to smaller screens. Some features depend on your browser, and large files may need more memory than your device has available.

Why does a tool download resources the first time I use it?

Some tools need to download processing resources before they can run. Processing starts after the download, and your browser can cache these resources for later use.