Format Express is the ideal companion to help you read minified input found in logs or web services.
This is an universal online formatter (JSON, XML, HTML, SQL, …): what you paste is immediately beautified with syntax highlighting, node navigation, minimap, recursive formatting, search supporting regular expression, ...
No, it's not a validator: the formatter is very permissive and will do its best even with malformed data.
I just try to make your life easier:
Yes. The data submitted on this site is securely sent over HTTPS to the server for the formatting, where it is neither saved* nor logged.
* unless using the link API (see below). In this case the input is saved for 10 days.
You can't ! So if your data contains sensitive or personal information, do not submit it on any random website, including this one.
Access-Control-Allow-Origin: * # any origin
Access-Control-Allow-Origin: https://format-express.dev # explicitly allow Format Express
Alternatively, you may try to disable CORS security in your browser, or call the URL yourself and paste it manually (yeah, life is harsh).
# Raw formatting is available on /api/beta/format ; Send the input in the body of a POST request.
$ curl https://format-express.dev/api/beta/format -d '{"test":{"success":true}}'
{
"test": {
"success": true
}
}
# To view the result in your browser, use the /api/beta/link ; The link is available for 10 days.
$ curl https://format-express.dev/api/beta/link -d '{"test":{"success":true}}'
https://format-express.dev/snippet/foo1234
# Extract the relevant lines of a file and pipe them to the curl command with the "-d @-" option.
$ grep 08:25:00 file.log | curl https://format-express.dev/api/beta/format -d @-
2021-07-04 08:25:00
<?xml version="1.0" encoding="utf-8" ?>
...
# TIP: for easier usage, create an alias.
$ alias formatexpress='curl https://format-express.dev/api/beta/format -d @-'
$ sed '2,4!d' file.log | formatexpress
2021-07-04 00:02:48
<?xml version="1.0" encoding="utf-8" ?>
...
Your donation will be used to support server costs. Any amount will be appreciated.