DEV Community

Cover image for I Built a Swiss Army Knife for Developers — View Every File Format Instantly
Hussnain Raza ⚡
Hussnain Raza ⚡

Posted on

I Built a Swiss Army Knife for Developers — View Every File Format Instantly

Ever found yourself juggling between a dozen different tools just to preview your files? JSON validator here, a markdown preview there, a regex tester somewhere else...
I built View — a free, browser-based multi-format viewer that handles 10 different file types in one clean interface. No sign-up, no installation, works offline after first load.
What It Does

📄 Multi-Format Support

  • JSON — Interactive tree view with expand/collapse, search, breadcrumb navigation
  • HTML — Live preview + source with syntax highlighting
  • Markdown — Real-time rendered preview + source view
  • CSV — Sortable table view with column filtering
  • DOCX — Word document preview (both V1 and V2 renderers)
  • PDF Export — Download beautiful PDFs of your Markdown and HTML views
  • URL — Full URL structure analysis
  • cURL — Parse and explain any curl command
  • CRON — Human-readable cron expression explanation
  • Regex — Pattern breakdown with test strings
  • TOON — Custom JSON shorthand format ⚡ JSON Superpowers
  • Instant search — Filter keys/values across the entire tree
  • One-click code generation — Get TypeScript interfaces or Zod schemas from any JSON
  • Smart copy — Copy formatted (Ctrl+C) or minified (Ctrl+M)
  • Auto-expand — Large files collapse by default, medium collections auto-collapse
  • Path tracking — Click any key to see its full path in the breadcrumb 🤖 AI Analysis Click "✨ ASK AI" to get instant insights about your file — summarize structure, find patterns, explain complex data. 🌗 Themes & History
  • Dark/Light mode toggle
  • Recent files history (last 10, truncated at 50KB)
  • LocalStorage persistence

How to Use

  1. Drop a file — Drag & drop onto the page
  2. Paste content — Ctrl+V anywhere
  3. Fetch from URL — Enter any URL, it auto-detects the format
  4. Load from history — Click any recent file in the sidebar Keyboard shortcuts — Ctrl+F (search), Ctrl+E (expand all), Ctrl+K (collapse all), Ctrl+D (download)

Try It Now
👉 view.hussnainraza.cv (https://view.hussnainraza.cv)

No account needed. Works right in your browser.

Built with vanilla JS, no bundler, runs everywhere — Bun server or Cloudflare Pages.

Top comments (0)