Device parameter parser
Parse supplied screen and device parameter JSON; missing or unproven fields return unknown.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Device JSON
Device result
Only explicitly supplied device fields are parsed.
Enter device JSON to see the result
: 0 · : 0 · : 0 · : 0 · : 0 · : 0
What this tool does
- Format device parameters exported by navigator or tests.
- Check screen size, pixel ratio and touch capability.
- Separate explicit orientation from size-derived orientation.
Example
Input
{"width":390,"height":844,"pixelRatio":3,"touch":true}Output
{
"width": "390",
"height": "844",
"ratio": "390/844",
"pixelRatio": "3",
"touch": "true",
"orientation": "portrait"
}The tool parses input JSON and does not read the current browser environment; unknown fields are not guessed.
Frequently asked questions
Does it read my device automatically?
No. JSON must be supplied so results are reproducible and explicit.
What is ratio?
It is the supplied width/height ratio representation, without model inference.
What happens when a field is missing?
The field is shown as unknown rather than guessed.
Keywords:设备信息屏幕参数device infoscreenpixel ratio