निःशुल्क और त्वरित — किसी पंजीकरण की आवश्यकता नहीं

Pixel Ratio Calculator

Calculate device pixel ratios, convert between CSS pixels and physical pixels, and determine optimal image resolutions for retina and HiDPI displays. Essential for responsive web design, mobile app development, and ensuring crisp graphics on every screen density.

Pixel Ratio Calculator — अनुपात का वास्तविक समय पूर्वावलोकन
Physical Pixels
—
A
B
⚖️
Proportion Solver
A : B = C : D — Enter any 3 values
:
=
:
📊
Results
Visual ratio breakdown
Solved Proportion
—
Simplified
—
Percentages
—
Decimal
—
Fraction
—
Visual Ratio
A
B
Part A: —
Part B: —
    ✨
    Ratio Simplifier
    Reduce any ratio to its simplest form
    :
    📊
    Simplified Result
    Reduced to lowest terms
    Simplified Ratio
    —
    GCD Used
    —
    Percentages
    —
    Decimal Ratio
    —
    Fraction
    —
    Visual Ratio
    A
    B
    Part A: —
    Part B: —
      📐
      Ratio Scaler
      Multiply a ratio by a scale factor
      :
      ×
      📊
      Scaled Result
      Ratio after scaling
      Scaled Ratio
      —
      Original
      —
      Factor
      —
      Percentages
      —
      Simplified
      —
      Visual Ratio
      A
      B

        🕐 Recent Calculations

        📭
        No calculations yet. Start computing above!

        What is Pixel Ratio?

        The device pixel ratio (DPR) is the relationship between a device's physical pixels and its CSS (logical) pixels. A DPR of 2.0 (common on Retina displays) means each CSS pixel is rendered by a 2×2 grid of four physical pixels. This makes text and UI elements appear sharper, but images must be provided at 2× resolution to avoid looking blurry on these high-density screens.

        Modern devices span a wide range of pixel ratios: standard desktop monitors at 1.0, MacBook Retina and iPad at 2.0, iPhone Pro at 3.0, and some Android devices at 2.75, 3.5, or even 4.0. Understanding pixel ratios is essential for serving correctly sized images, designing responsive layouts, and ensuring visual consistency across the diverse device ecosystem.

        प्रयुक्त सूत्र और समीकरण

        यह Pixel Ratio Calculator ५ मुख्य समीकरणों का उपयोग करता है:

        1 Physical Pixels from CSS ▼
        Physical Pixels = CSS Pixels × Device Pixel Ratio

        A 375px CSS width at 3× DPR: Physical = 375 × 3 = 1125 physical pixels.

        2 CSS Pixels from Physical ▼
        CSS Pixels = Physical Pixels / Device Pixel Ratio

        A 2560×1440 display at 2× DPR renders as 1280×720 CSS pixels.

        3 Image Size for Target DPR ▼
        Required Image Size = Display Size (CSS) × Target DPR

        A 300×200 CSS image area needs 600×400 source for 2× DPR, 900×600 for 3× DPR.

        Explore all calculation options on the अनुपात कैलकुलेटर home page.

        इस कैलकुलेटर का उपयोग कैसे करें

        इस अनुपात कैलकुलेटर का उपयोग करने के लिए, इन ३ चरणों का पालन करें:

        1

        मान दर्ज करें

        इनपुट फ़ील्ड में ज्ञात अनुपात मान टाइप करें। एक फ़ील्ड खाली छोड़ दें — यह वही अज्ञात मान है जिसे अनुपात कैलकुलेटर हल करेगा।

        2

        मोड चुनें

        अनुपात मोड चुनें — हल करें, सरल करें, या स्केल करें। प्रत्येक मोड आपके इनपुट मानों पर अलग-अलग समीकरण लागू करता है।

        3

        परिणाम प्राप्त करें

        गणना करें (Calculate) पर क्लिक करें। परिणाम स्क्रीन एक दृश्य अनुपात पट्टी, पाई चार्ट और चरण-दर-चरण समाधान के विवरण के साथ उत्तर प्रदर्शित करती है।

        उदाहरण समस्याएं और चरण-दर-चरण समाधान

        इस अनुपात कैलकुलेटर का उपयोग करके चरण-दर-चरण समाधान के साथ ३ उदाहरण समस्याएं नीचे दी गई हैं:

        इनपुट 1 iPhone 14 Pro: 393×852 CSS at 3× DPR
        1 Identify CSS viewport dimensions (393 × 852 pt) and Device Pixel Ratio (DPR = 3.0).
        2 Calculate physical width: 393 × 3 = 1,179 pixels.
        3 Calculate physical height: 852 × 3 = 2,556 pixels.
        ✓ Physical Screen Resolution is 1179 × 2556 pixels
        इनपुट 2 Image for 2× and 3× displays
        1 Target UI display size: 300 × 200 CSS pixels.
        2 Standard 1× asset: 300 × 200 px.
        3 Retina @2x asset: 600 × 400 px.
        4 Retina @3x asset: 900 × 600 px.
        ✓ Export @2x (600×400) and @3x (900×600) assets
        इनपुट 3 Calculate DPR from screen specs
        1 Screen hardware resolution: 2880 × 1800 px.
        2 Rendered CSS viewport: 1440 × 900 px.
        3 Divide physical by CSS: 2880 ÷ 1440 = 2.0 DPR.
        ✓ Device Pixel Ratio (DPR) is 2.0×

        अक्सर पूछे जाने वाले प्रश्न (FAQ)

        What is device pixel ratio (DPR)? ▼

        Device pixel ratio is the ratio of physical pixels to CSS (logical) pixels on a display. A DPR of 2.0 means each CSS pixel is rendered by a 2×2 block of 4 physical pixels, resulting in sharper text and graphics. Higher DPR displays are called Retina (Apple) or HiDPI (general).

        What is the DPR of an iPhone? ▼

        iPhone SE/6/7/8: DPR 2.0. iPhone 12/13/14/15 standard: DPR 3.0. iPhone Pro/Pro Max: DPR 3.0. The CSS viewport width is 375-430px, but physical resolution ranges from 750px (SE) to 1290px (Pro Max).

        How do I make images look sharp on Retina displays? ▼

        Provide images at 2× the CSS display size. If an image displays at 600×400 CSS pixels, the source file should be 1200×800 pixels for 2× Retina. Use the HTML srcset attribute to serve this to Retina devices while sending the 1× version to standard screens.

        What is the difference between CSS pixels and physical pixels? ▼

        CSS pixels are the logical unit used in web design (what you set in CSS). Physical pixels are the actual light-emitting elements on the screen. On a DPR 2.0 display, 1 CSS pixel = 2×2 = 4 physical pixels. This distinction means a '1920px wide' CSS layout can be rendered by 3840 physical pixels.

        How does DPR affect image file size? ▼

        A 2× image has 4 times the pixel count (2× width × 2× height). A 3× image has 9 times the pixel count. This proportionally increases file size (compressed sizes vary, but expect 2-4× larger files for 2× images). This is why responsive images with srcset are important for performance.

        What is srcset and how does it relate to pixel ratio? ▼

        srcset is an HTML attribute that provides multiple image sources at different resolutions. The browser selects the best match based on the device's DPR and viewport size. Example: srcset='hero-400.jpg 400w, hero-800.jpg 800w, hero-1200.jpg 1200w' with sizes='100vw' lets the browser choose optimally.

        What DPR should I design for? ▼

        Design at 1× CSS pixels (logical) and export assets at 2× for web. This covers most devices. For iOS development, export at @2x and @3x. For Android, export mdpi (1×), xhdpi (2×), and xxhdpi (3×) at minimum. Creating only 1× assets is not acceptable for modern apps.

        How do I check my screen's pixel ratio? ▼

        In any browser, open Developer Tools console and type window.devicePixelRatio. On Windows, check Display Settings > Scale. On Mac, Retina displays report DPR 2.0. Online tools can also detect and display your current device's DPR.

        Do SVG images need different sizes for different DPRs? ▼

        No. SVG (Scalable Vector Graphics) is resolution-independent — it renders sharply at any size and any DPR. Use SVGs for icons, logos, illustrations, and any graphic that can be represented as vectors. Only raster images (JPEG, PNG, WebP) need DPR-specific sizes.

        What is PPI vs. DPR? ▼

        PPI (pixels per inch) measures the physical pixel density of a screen (e.g., 326 PPI for iPhone). DPR is the ratio of physical pixels to CSS pixels (e.g., 2.0 for Retina). A 326 PPI iPhone with DPR 2.0 shows CSS content at an effective 163 PPI logical density.

        How does pixel ratio affect web performance? ▼

        Serving unnecessarily high-resolution images to low-DPR devices wastes bandwidth and increases load time. Properly implementing responsive images with srcset and sizes attributes ensures each device downloads only the resolution it needs, improving Largest Contentful Paint (LCP) scores.

        अनुपात के बारे में जानें

        अनुपात क्या है?

        अनुपात दो या दो से अधिक मात्राओं के बीच एक तुलना है जो दर्शाती है कि एक चीज दूसरी चीज की तुलना में कितनी है। अनुपात को A : B के रूप में लिखा जाता है, जिसका अर्थ है 'पहली मात्रा के प्रत्येक A इकाई के लिए दूसरी मात्रा की B इकाई है।' जैसे, ३ : ४ अनुपात का अर्थ है कि A के प्रत्येक ३ भागों के लिए B के ४ भाग हैं। अनुपात का उपयोग खाना पकाने, निर्माण, वित्त, विज्ञान और दैनिक जीवन में किया जाता है।

        मैं एक समानुपात को कैसे हल करूँ?

        समानुपात एक समीकरण है जो बताता है कि दो अनुपात बराबर हैं: A : B = C : D। एक अज्ञात मान को हल करने के लिए वज्रगुणन (क्रॉस मल्टीप्लिकेशन) का उपयोग करें। यदि D अज्ञात है: D = (B × C) / A। यह काम करता है क्योंकि समान अनुपात में विकर्ण गुणा हमेशा बराबर होते हैं: A × D = B × C। हमारा समानुपात समाधानकर्ता यह काम स्वचालित रूप से करता है — बस कोई भी ३ मान दर्ज करें और यह चौथा मान ढूंढ लेगा।

        मैं किसी अनुपात को कैसे सरल बनाऊं?

        किसी अनुपात को सरल बनाने के लिए, दोनों संख्याओं का महत्तम समापवर्तक (म०स०) ज्ञात करें और प्रत्येक संख्या को उससे विभाजित करें। जैसे, २४ : ३६ के लिए २४ और ३६ का म०स० १२ है। इसलिए २४ ÷ १२ = २ और ३६ ÷ १२ = ३, जो सरल अनुपात २ : ३ देता है। हमारा सरलीकरणकर्ता स्वचालित रूप से म०स० ढूंढता है और आपके अनुपात को उसके सबसे सरल रूप में कम करता है।

        अनुपात स्केलिंग क्या है और यह कब उपयोगी है?

        अनुपात को स्केल करने का अर्थ है दोनों पदों को एक ही संख्या से गुणा करके एक समतुल्य बड़ा (या छोटा) अनुपात बनाना। जैसे, २ : ५ अनुपात को ३ के गुणक से स्केल करने पर ६ : १५ अनुपात प्राप्त होता है। यह व्यंजनों की मात्रा बढ़ाने या घटाने (जैसे, एक रेसिपी को तिगुना करना), ड्राइंग स्केल करने, मिश्रण तैयार करने या किसी भी अन्य स्थिति के लिए जहां समान अनुपात को दूसरे आकार में रखना हो, अत्यंत उपयोगी है।

        अनुपात और भिन्न में क्या अंतर है?

        एक अनुपात A : B दो मात्राओं की आपस में तुलना करता है (भाग से भाग), जबकि एक भिन्न A/B आम तौर पर भाग से संपूर्ण के संबंध को प्रदर्शित करता है। हालांकि किसी भी अनुपात को भिन्न के रूप में व्यक्त किया जा सकता है: ३ : ४, ३/४ = ०.७५ के समतुल्य है। मुख्य अंतर उपयोग का संदर्भ है — अनुपात पास-पास तुलना करता है, जबकि भिन्न संपूर्ण के एक हिस्से को दर्शाता है।