BrokenTools
EN

JSON formatter, validator and minifier

Make JSON readable, shrink it, or check if it is valid. If there is an error you see where it is.

    How to use it

    1. Paste your JSON.
    2. Choose Format, Minify or Only check.
    3. Copy the result.

    Make JSON readable

    Format JSON with indentation so you can read it, or minify it to make it small. It also checks whether the JSON is valid, which is useful when you work with APIs and configuration files.

    Finding errors

    If there is an error, you see where it is. Common causes are a missing comma, a trailing comma, single quotes instead of double quotes and keys without quotes. Fix the place shown and check again.

    Privacy

    The JSON is processed in your browser, so private data and keys are not sent to a server. Very large files may be slow to display.

    Example: find the broken comma

    An API answer comes as one very long line. Paste it and press Format. Each level is indented and you can read it. If a comma is missing, the tool points to the line and position of the error, so you fix it in seconds. When the file is going to production, press Minify to remove all spaces.

    Quick tips

    Common problems and fixes

    Questions

    How do I find an error?

    If the JSON is not valid, the message says what is wrong and shows the line and column.

    Can I sort the keys?

    Yes. Tick Sort keys and every object is sorted from A to Z.

    Is my JSON uploaded?

    No. It is processed in your browser.