Communication

Device Information Tool

Live

Calculate viewport from .

About Device Information Tool

Calculate viewport from . Enter in a purpose-built device information tool interface designed for this subject. Standard screen, viewport, media-query, and input capability APIs report device information exposed by the browser. The result includes viewport, screen, user preferences, input capabilities, supporting detail, and clear units or diagnostics. Results depend on the entered assumptions, units, supported input range, and rounding. Review important decisions against authoritative requirements. Processing stays in your browser, and UtilityPages does not store the values you enter.

Set up Device Information Tool

Workspace

Source workbench

Edit the source fields below and inspect the rendered output alongside your work.

This workspace updates as you edit.

Device Information Tool result

Enter the values above, then process to see a detailed result.

How Device Information Tool works

Standard screen, viewport, media-query, and input capability APIs report device information exposed by the browser.

How it works

Standard screen, viewport, media-query, and input capability APIs report device information exposed by the browser. Results depend on the entered assumptions, units, supported input range, and rounding. Review important decisions against authoritative requirements.

Examples

Device Information Tool worked example

Expected result
{
    "viewport": "0 × 0",
    "screen": "0 × 0",
    "preferences": [
        {
            "preference": "Dark mode",
            "value": "No"
        },
        {
            "preference": "Reduced motion",
            "value": "No"
        }
    ],
    "input_capabilities": [
        {
            "capability": "Coarse pointer",
            "value": "No"
        },
        {
            "capability": "Hover",
            "value": "No"
        }
    ]
}

Privacy

This tool does not store your inputs or results on UtilityPages.org.

Citations & sources

  1. Web APIs

Frequently asked questions

How does the Device Information Tool work?

Standard screen, viewport, media-query, and input capability APIs report device information exposed by the browser.

What information should I enter?

Enter . Use values and units from the same scenario so the result is internally consistent.

What results does this tool provide?

It reports viewport, screen, user preferences, input capabilities, including intermediate context where it helps you review the answer.

What limitations should I know about?

Results depend on the entered assumptions, units, supported input range, and rounding. Review important decisions against authoritative requirements.