How to use Log Formatter
- Paste log lines (one JSON object per line, e.g. NDJSON).
- Optional: put 'level:error' (or level:info, etc.) on the first line to show only that level.
- Click Format to pretty-print (and filter) JSON lines.
- Copy or download the formatted log.
Example
Input
Your input or data here
Output
Result will appear here after running the tool
Frequently asked questions
- What if a line is not JSON?
- Non-JSON lines are left unchanged when not filtering. When filtering by level, only matching JSON lines are included.
- How does the level filter work?
- If the first line is 'level:error', only log lines whose JSON has level equal to 'error' are shown (case-insensitive).
Related tools
- IP LookupDisplay IP information, country, and ISP
- DNS LookupQuery DNS records for a domain
- User Agent ParserParse browser and device information from user agent
- HTTP Header ViewerShow request headers sent by your browser
- HTTP Status Code LookupLook up HTTP status code meaning
- cURL to Fetch/AxiosConvert cURL command to JavaScript fetch or axios code