To convert an HTML menu card into an image, render it in a real browser, capture only the card, and check the exported file at phone size. A repeatable workflow is: set the card’s intended dimensions, wait for fonts and images to load, capture the card element or a matching clip, then inspect the result for legibility and cropping.
Build the menu card at its intended size
Keep the card’s content frame separate from the rest of the page. Set a stable width and height for the card in CSS, and make sure its layout does not depend on unrelated page content. This makes the capture predictable and helps avoid exporting browser whitespace or neighboring elements.
Prioritize dish names and prices, use strong text-to-background contrast, and keep essential copy and food imagery away from the edges. A layout that looks clear on a desktop may be difficult to read when displayed at phone size, so inspect the rendered image at roughly the size customers will see it.
Render and capture it with Playwright
Playwright takes screenshots of the browser-rendered page, so the image reflects the HTML and CSS layout. Its Page API supports PNG, JPEG, and WebP output, as well as element screenshots, clipped areas, full-page capture, output scale, transparency, and JPEG quality. See the Playwright Page screenshot documentation.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problems#1 Best Overall
- PREMIUM LINEN TEXTURE MENU CARDS 80LB COVER 230GSM CARDSTOCK: Heavyweight 4"x9" cardstock features elegant linen textured finish, great hand feel, reduces ink show through for sharp handwriting and premium looking wedding menu cards
- PRACTICAL 4" X 9" RACK CARD DIMENSION: Versatile menu cardstock offers ample design space, perfect for wedding menus, menu paper, wedding thank‑you notes,reserved seat cards,christmas cards,wedding programs, marketing mailers, announcements and event promotional projects
- ELEGANT TEXTURED PRINTABLE SURFACE: Distinct linen texture adds upscale visual touch for restaurant menus, banquet events, branding and personalized crafts; delivers clean print output without unwanted glare
- INKJET, LASER & COPIER COMPATIBLE: Optimized for home & commercial printers for smooth feeding; produces crisp texts and graphics. Confirm your printer supports 80lb cover weight before printing thick cardstock
- WHAT YOU RECEIVE: 60 pieces blank linen‑textured cards 4×9 in printable cards; ready‑to‑use for menus, special occasions, business communications and assorted DIY printing needs
For a single menu card, capture the card element rather than the full page. The example below assumes the card has id="menu-card" and that the HTML is served locally at http://localhost:8000/menu.html.
-
Install Playwright and its Chromium browser:
npm install playwright npx playwright install chromium -
Save this as
capture-menu.jsand run it withnode capture-menu.js:const { chromium } = require('playwright'); (async () => { const browser = await chromium.launch({ headless: true }); const page = await browser.newPage({ viewport: { width: 800, height: 1000 }, deviceScaleFactor: 1 }); await page.goto('http://localhost:8000/menu.html', { waitUntil: 'networkidle' }); await page.evaluate(() => document.fonts.ready); const card = page.locator('#menu-card'); await card.waitFor({ state: 'visible' }); await card.screenshot({ path: 'menu-card.png', type: 'png' }); await browser.close(); })().catch(error => { console.error(error); process.exitCode = 1; }); -
Open
menu-card.pngand check that the whole card is present, text is readable, and images have loaded.
networkidle waits for network activity to settle, but pages that keep connections open can make this wait unsuitable. In that case, wait for a specific card or image selector, or use an explicit delay appropriate to the page. Waiting for document.fonts.ready helps prevent a capture before web fonts finish loading; still inspect the output, especially when assets come from external hosts.
Rank #2
- VERSATILE MENU & PROMOTIONAL USES – Perfect for restaurant menus, drink specials, takeout lists, promotional rack cards, event programs, spa service menus, and retail product lists. The tall 4" x 9" format fits standard menu holders and display racks.
- PREMIUM MATTE NATURAL CREAM CARDSTOCK – Crafted from sturdy 100lb Cover (270gsm) cardstock with a smooth matte finish and warm natural cream tone that gives menus and promotional cards an elegant, professional presentation.
- PRINTER COMPATIBILITY – Designed for smooth feeding and crisp results with most inkjet printers, laser printers, and digital copiers, making it easy to print professional menus and rack cards directly from your office or shop.
- STANDARD 4" x 9" SIZE FORMAT – Classic rack card and menu size ideal for tabletop displays, brochure racks, takeout counters, reception desks, and retail displays. Perfect for tri-section menu layouts, specials lists, or service menus.
- FREE TEMPLATES & ONLINE DESIGNER – Includes downloadable templates plus access to the Desktop Publishing Supplies online template designer so you can quickly customize, format, and print professional menus and rack cards.
Choose the crop, resolution, and format
Capture scope
An element screenshot captures the card itself. A clip captures a chosen rectangle, useful when the card has no unique element selector. A full-page screenshot includes the whole document and is usually the wrong choice for one menu-card asset unless the card is the entire page.
Pixel scale
Playwright’s CSS scale produces one output pixel per CSS pixel. Device scale uses device pixels and may produce a larger image. Use a fixed viewport and scale for repeatable exports; changing either can change the output dimensions.
Image format
- PNG: supports transparent backgrounds and avoids JPEG’s lossy compression. The screenshot quality option does not apply to PNG.
- JPEG: supports adjustable quality but not transparency. Use it when a smaller photographic file is more important than a transparent background.
- WebP: another supported output format; confirm that the destination platform accepts it before choosing it.
There is no universally best format: choose based on the upload target, transparency needs, and acceptable file size.
Check the target platform before choosing dimensions
Do not treat one platform’s rules for one image type as a universal specification for a menu card. Zomato’s surfaced guidelines give a maximum of 650 × 700 pixels for menu pages and recommend 1200 × 600 pixels or greater for cover photos. Those are different asset types, and the page does not establish a current general limit for HTML-generated cards. See Zomato’s partner resources.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Rank #3
- HEAVYWEIGHT 80LB COVER (218GSM) CARDSTOCK: Premium white cardstock provides a professional feel with excellent durability, crisp print quality, clean handwriting performance, and reduced show-through.
- MENU CARD 4" X 9" SIZE: Rack card size provides ample space for menus, promotions, thank you messages, event information, marketing materials, announcements, and customer communications.
- WHITE MATTE FINISH CARDSTOCK: Bright white printable surface delivers excellent contrast for logos, branding, graphics, menus, advertisements, business messaging, and personalized designs.
- INKJET, LASER, & COPIER COMPATIBLE: Designed for dependable performance with inkjet printers, laser printers, and copiers delivering crisp text, vibrant graphics, and smooth feeding for home, office, restaurant, hospitality, and commercial printing use.
- TRUSTED QUALITY, MADE IN THE USA: Manufactured by Desktop Publishing Supplies, a family-owned company with over 30 years of experience producing premium heavyweight cardstock and paper products.
Swiggy’s November 3, 2023 article describes capturing and uploading menu images through the Swiggy Owner app and says the feature validates and enhances images, but it does not give current pixel dimensions for an HTML-generated menu card. See Swiggy’s feature article. Check the current upload flow and requirements for the exact asset type—menu page, dish image, cover photo, or promotional card—before exporting.
Inspect the exported image
- Confirm that the card edges are not clipped and no unrelated page content appears.
- Check dish names and prices at phone-display size, not only while zoomed in.
- Look for missing or substituted fonts, blank image areas, and unexpected spacing.
- Verify that the image dimensions and file type match the current upload requirements for the destination.
Troubleshooting common capture problems
The screenshot is blank or the card is missing
Confirm the page URL loads, the selector matches an element, and the card is visible before capture. If content is rendered after navigation, wait for the relevant selector or asset rather than capturing immediately.
Fonts or food images look wrong
Wait for fonts to finish loading and verify that external image requests succeed. A browser screenshot can only capture what has rendered; inspect the page in the same browser environment if the output is unexpected.
The output is too large or too small
Check the card’s CSS dimensions, viewport, and screenshot scale. CSS scale maps CSS pixels one-to-one to output pixels; device scale can increase pixel dimensions.
Rank #4
- Heavyweight Cardstock Printer Paper White– Premium 110lb Index weight(199gsm) cardstock delivers a thick, sturdy feel, ideal for professional-quality printing, business cards, and creative projects.
- Printer-Friendly Performance Cardstock printer paper– Engineered for flawless results with both laser and inkjet printers—no jamming, no smudging, just sharp, vibrant prints every time.
- Acid-Free for Long-Lasting Prints – This White Card stock paper Archival-quality, acid-free paper resists yellowing over time, perfect for certificates, resumes, and important documents.
- Versatile Uses – Whether you're crafting greeting cards, designing invitations, or printing flyers, this cardstock offers a smooth, clean surface for all your ideas.
- Made in the USA – Proudly manufactured in the USA for consistent quality heavyweight cardstock paper, eco-friendly sourcing, and reliable performance in home, office, or school settings.
The card is cropped
Use the card element’s screenshot when possible. If using a clip, compare its coordinates and dimensions with the intended card frame. Keep important text and imagery away from the card edges.
The image is rejected by the delivery platform
Recheck the current requirements for that platform and asset type, including dimensions, accepted formats, file-size limits, and crop behavior. The older Zomato figures above do not establish current rules for every card, and Swiggy’s cited 2023 article does not specify dimensions for generated cards.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Or skip the browser setup
For a one-call browser-rendered image, ScreenshotNeo accepts a URL and returns a screenshot; its API also supports HTML/CSS-to-image conversion. ScreenshotNeo is a website screenshot API and MCP server from Yorker Media. Its service page describes options including element capture, viewport settings, image formats, and custom CSS and JavaScript.
Use an HTML page that is publicly reachable by the service, then request it like this:
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Best Value
- VERSATILE SIZE - Measuring 4" x 9", these cards work great for Menu Cards for weddings, drink menu's for bars, dessert menus for restaurants, Rack cards for business advertising, flash or note cards and much more.
- BLANK WHITE MATTE FINISH - These cards feature a blank white vellum matte finish on both sides of the card
- ULTRA THICK CARDSTOCK - Made from an ultra thick 120lb Cover White Cardstock (325gsm). This stock is very durable, professional, and substantial to the end user.
- INKJET & LASER PRINTER COMPATIBLE - Printable with industrial grade inkjet or laser based printers or copiers. Please note, this stock is extremely thick and will not work on most home printers.
- THICKNESS DISCLAIMER: PLEASE CONSULT YOUR PRINTER MANUAL BEFORE ORDERING TO ENSURE YOU CAN PRINT ON THIS THICKNESS
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com/menu.html -o menu-card.webp
See the ScreenshotNeo API documentation for request parameters. Cookie banners, newsletter popups, and chat widgets are removed before capture by default, with each step configurable. Bot checks, blank pages, and failed loads are not billed; responses indicate the page verdict and billing status. An MCP server provides screenshot tools for AI agents, and the free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots.
Sign up for ScreenshotNeo’s free plan.
Frequently Asked Questions
Can I export the menu card with a transparent background?
Yes. Playwright supports transparency for formats that allow it, such as PNG; JPEG does not support transparency.
Should I use a full-page screenshot for a menu card?
Usually not. Capture the card element or a deliberate clip so the file contains the intended asset rather than the entire page.
Do the cited Zomato dimensions apply to Swiggy menu cards?
No. The cited Zomato values refer to menu pages and cover photos, while the cited Swiggy article does not establish dimensions for HTML-generated cards.
Recommended Free Tools
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

