In short.
This guide explains Claude image coordinates for developers building document and UI workflows, but correct placement requires handling resizing and checking spatial accuracy. It provides helpers for calculating processed image dimensions and mapping returned points back to an original image or screen. It also documents per-image resize rejection through transformations.oversized_image. Its main value is preventing systematic coordinate errors caused by token limits and padding; measured detection accuracy, API prices and named model-to-resolution-tier assignments are not established by this page.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is the complete documentation page at [https://platform.claude.com/docs/en/build-with-claude/vision-coordinates.md], including embedded code and notices about padding, resize rejection, token counting, PDFs and tool-result images. Linked pages are excluded. No code or API requests were executed; runtime behavior, coordinate accuracy and production reliability remain untested.
The overview
Identity
Coordinates and bounding boxes is a Claude platform documentation guide about the coordinate system used for image regions, bounding boxes and points. The original source address is [https://platform.claude.com/docs/en/build-with-claude/vision-coordinates.md]. The page declares its web address as [https://platform.claude.com/docs/en/build-with-claude/vision-coordinates].
The resource consists of explanations, API request fragments and reference functions. It teaches a Claude vision feature rather than providing a standalone image-analysis application or installable library.
Assessment
The guide is useful when Claude identifies the right image region but the resulting box or click lands in the wrong place. It explains several causes of that mismatch: resizing driven by visual token limits, choosing limits for the wrong resolution tier and scaling against padded dimensions.
Its strongest contribution is concrete integration guidance with matching reference code across seven languages. It does not establish how accurately Claude detects objects in a particular workload, and it does not supply all the information needed to choose a model or estimate monetary cost.
Users
The intended users are developers building OCR pipelines, form extraction, chart parsing and UI element location. The examples apply to locating tables, fields, chart elements and buttons when an application needs to act on a particular image region.
Beginners get an explanation of pixel coordinates and resizing. Experienced developers get details about rounding, validation errors, per-image settings, screen scaling and differences between ordinary image inputs, PDFs and tool-result screenshots. Applying the code requires programming and API integration skills.
Capabilities
The page explains how to request absolute pixel points and bounding boxes, calculate the dimensions Claude processes, and convert positions back to an original image. It recommends requesting pixel coordinates explicitly and performing any normalization in application code. It also points to structured outputs for machine-readable JSON, without providing a complete integration for that feature.
The optional image-block setting transformations.oversized_image = "error" rejects an image that would otherwise be downsized. The documented response is a 400 invalid_request_error identifying its dimensions and the largest fitting dimensions across every model named in the request. Each image has its own setting; omitting it defaults to "downsize". A marked image is never served resized.
Using it
Requirements
Applying the guide requires a Claude Messages API integration with image input, knowledge of the uploaded image’s pixel dimensions and the target model’s resolution tier. The application must be able to resize images or transform returned coordinates. Pillow and sharp appear as example image-processing libraries, without installation instructions or version requirements.
The page delegates named model-to-tier assignments, supported image formats, complete request limits and image-submission instructions to linked documentation. Those details are not established by the supplied page. Direct PDF uploads do not provide the controlled raster dimensions needed for the coordinate-mapping method.
Mechanism
Coordinates start at the top-left corner, with x increasing rightward and y downward. Returned positions refer to the image after Claude’s resizing. The documented standard tier has a 1,568-pixel edge limit and a 1,568-visual-token budget; the high-resolution tier has limits of 2,576 pixels and 4,784 visual tokens. Image token usage is ceil(width / 28) × ceil(height / 28).
The reference helpers search for the largest aspect-preserving integer dimensions that fit both limits, including edge dimensions rounded up to multiples of 28. They use round-half-to-even behavior when calculating the shorter side. Claude then pads the bottom and right edges to multiples of 28; padding leaves the origin unchanged.
Coordinate conversion must use the unpadded resized dimensions. After clamping a returned point to those bounds, its original-image position is x × original_width / resized_width and y × original_height / resized_height. Apply the same conversion to both corners of a bounding box.
Setup
The preferred approach is to calculate the fitting dimensions with the helper configured for the target tier, resize locally and send that image without adding padding. Request a specific format, such as [x1, y1, x2, y2] for top-left and bottom-right pixel corners. Returned coordinates then correspond directly to the image sent.
For pipelines that depend on preserving dimensions, add the resize-error setting to the relevant image blocks. Token counting honors this setting for embedded images, allowing a resize check before inference. It rejects URL and file-ID images rather than fetching them; those sources are checked during the Messages request. A successful ordinary token count does not prove that all Messages request limits are satisfied.
Example
The page’s standard-tier A4 example starts with a 1075 × 1520 image. Although both edges are below 1,568 pixels, its 2,145 visual tokens exceed the standard budget, so the documented resized dimensions are 924 × 1307. Padding extends that to 924 × 1316, but coordinate conversion must still use 924 × 1307. The example maps a returned point at (462, 653.5) to (537.5, 760) on the original image.
The page also gives a 1920 × 1080 screenshot that becomes 1456 × 819 on the standard tier. Scaling only to the edge limit would incorrectly predict 1568 × 882. These are documentation examples, not independently observed execution results.
Assessment & evidence
Limitations
Correct scaling does not guarantee correct detection. The page acknowledges limited spatial reasoning and recommends visual spot checks. Small elements lose precision when downscaled; cropping a region and offsetting returned coordinates by the crop origin, or using a high-resolution tier, are documented mitigations. No measured accuracy or minimum reliable target size is supplied.
PDF pages are rasterized server-side at dimensions the caller does not control, preventing reliable mapping back to page coordinates. The suggested approach is to rasterize pages locally and pre-resize the resulting images. Computer-use and browser-use tool-result screenshots are another exception: oversized images are rejected rather than automatically resized, so applications must resize them before submission and map positions back to the screen.
The resize-error setting does not bypass the separate 8,000-pixel longest-side limit or stricter limits for many-image requests. Padding, format conversion and orientation correction still occur. URL and file-ID resize errors omit an image position, making the failed image harder to identify. Marked images with indeterminable dimensions are rejected, and document blocks do not accept the setting.
Reasoning
The guide separates coordinate mapping from object recognition. A systematically displaced box can result from incorrect assumptions about image size even when the model identified the intended region. Its examples show why checking only the longest edge is insufficient: the visual token budget can force resizing first.
Pre-resizing makes the application’s image dimensions explicit. The resize-error setting adds protection when an image source or model tier changes, exposing a mismatch as a request error. These measures address coordinate alignment; they do not establish the accuracy of the model’s underlying spatial judgment.
Alternatives
The page presents two main approaches: pre-resize when the application controls image preparation, or recover the processed dimensions and rescale coordinates when an upstream image source cannot be changed. Both require the correct model-tier limits.
For fine targets, it suggests crops or a high-resolution tier. For PDF coordinate work, it suggests local rasterization instead of direct PDF submission. It does not compare competing OCR, object-detection or UI-location tools, so relative accuracy and cost are not assessed.
Evidence
The evidence is the complete Claude documentation page, including its explanatory notes, reference functions, sample coordinate conversions, request fragments and error messages. These support an account of the documented interface and calculations, but provide no independent accuracy measurements or application results.
The linked Vision, structured outputs, PDF support, token counting, computer-use, browser-use and fallback pages are outside the supplied evidence. Their contents cannot establish additional capabilities, compatibility or limits here.
Access & freshness
Costs
API prices, subscription requirements and monetary costs are not provided, so cost is unknown. The page supplies visual token accounting and resolution budgets, which describe image processing limits rather than currency prices.
It does not quantify monetary savings, latency or throughput for local resizing, cropping or choosing a high-resolution model. An application-specific cost estimate cannot be established from this page alone.
Rights
The supplied text includes reference code but no explicit license or redistribution terms for the snippets or documentation. Rights to reuse or redistribute that material are unknown from this evidence. Terms governing uploaded images and model outputs are also not specified here.
Freshness
The supplied page capture is dated 25 November 2026. The text gives no publication date, last-updated date or pinned API version. It refers elsewhere for named model-to-tier assignments, so those assignments and any later documentation changes remain unknown.
Actions
Confirm the target model’s tier using the referenced resolution guidance at [https://platform.claude.com/docs/en/build-with-claude/vision#evaluate-image-size]. Configure the matching helper limits and retain original and resized dimensions with each image. Prefer pre-resizing, request absolute pixel coordinates and visually check representative outputs before processing at scale.
Use the per-image resize-error setting where coordinate alignment matters. If rescaling is necessary, clamp positions and use unpadded dimensions. For screenshots, also account for any difference between image pixels and logical screen coordinates on HiDPI displays. For small targets or PDF content, follow the documented crop or local-rasterization approaches.
