Open PDF, Excel (xlsx, csv), Word (docx), PowerPoint (pptx), draw.io, ZIP/7z/RAR, APK/IPA, SQLite, Parquet, EPUB, fonts and HEIC files right inside VS Code. Fast, offline preview with no telemetry.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Peek is a PDF, Excel, Word and file viewer for VS Code. It opens the files developers deal with every day (PDFs, spreadsheets, Word and PowerPoint files, diagrams, archives, APKs and more) in a clean, Mac-style viewer inside VS Code. It works fully offline and sends nothing anywhere.
.md.markdown (via the preview button or Open With)
Rendered preview with local images, tables, task lists, outline
More
.epub.xmind.excalidraw
Reader, mind map outline, drawing
Anything else
any file
Hex viewer (right-click → Open in Hex Viewer)
Text-based formats (.csv, .svg, .plist, .pem, …) keep VS Code's text editor as the default. Use Open With… → Peek to view them.
Settings
Setting
Default
hexhad.peek.maxFileSizeMB
300
Larger files open in the hex viewer instead of loading fully
hexhad.peek.markdown.remoteImages
false
Load https:// images (badges, screenshots) in the Markdown preview
Privacy
Peek runs entirely on your machine. No telemetry, no network requests, no accounts. The viewer's security policy blocks network access (the Markdown preview can load web images only if you turn on hexhad.peek.markdown.remoteImages).
Development
npm install
npm run build # manifest, host, webview, media, licenses
npm test # unit tests
npm run package # builds peek-document-viewer .vsix
Press F5 in VS Code to start an Extension Development Host. npm run brand rebuilds the icon and README hero.