WorkspaceAndroid Developer ToolsClient-Side Sandbox

px to dp Converter

Convert physical screen pixels (px) into Android density-independent pixels (dp) for any source DPI bucket.

Input Buffer
1 ln · 17 ch · 17 B
ENCODING: UTF-8AUTO-RUN: ENABLED
Output Buffer
OUT: 1 LN · 0 B⌘↵ RUN · ⌘⇧C COPY

How to Use px to dp Converter

  1. Enter pixel size and baseline screen density (e.g. `480` for xxhdpi) to calculate `dp` and all sibling bucket sizes.

Keyboard Shortcuts & Sandbox Guarantee

Run / Process tool outputCtrl + Enter
Copy primary output to clipboardCtrl + Shift + C
Open global command paletteCtrl + K