Format code

One long line of code, laid out to read.

  • Free, no sign-up
  • Nothing is uploaded
  • No daily limit
Files

    How to use Code formatter

    1. Type or paste into the boxes on this page.

    2. The result appears as you type, and changes when you do.

    3. Press Code formatter, then copy or download the result.

    What you get

    • JS, TS, CSS, HTML, SQL, XML, JSON
    • Finds the language
    • 2 or 4 spaces, or tabs

    What to know first

    • It lays code out; it does not fix mistakes in it.
    • It runs on your device: nothing you type is sent.

    Questions

    Does it change what the code does?

    No. Only spaces and line breaks change.

    Which SQL does it know?

    Standard SQL, which covers MySQL, PostgreSQL and SQL Server for most queries.

    Is my file uploaded?

    No. The page loads the converter into your browser and your device does the work. Run a tool once, switch off the internet and run it again: it still works. The page’s security rules also stop it from connecting to any other site.

    Is it free? Is there a limit?

    Free, with no sign-up, no watermark and no daily limit. The limit is your device’s memory, because the work happens there.

    More Codes and small tools

    Make and read QR codes and barcodes, check a file’s hash, format JSON, make passwords, convert 3D files. Free, on your device.

    See all Codes and small tools · Every tool