<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rohit Kumar</title>
    <description>The latest articles on DEV Community by Rohit Kumar (@tooltable).</description>
    <link>https://dev.to/tooltable</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4272600%2Fb3e5bb33-69ac-4e3a-8116-f3754039135a.png</url>
      <title>DEV Community: Rohit Kumar</title>
      <link>https://dev.to/tooltable</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tooltable"/>
    <language>en</language>
    <item>
      <title>How to Extract Text from Receipts and Screenshots Offline Using Browser OCR</title>
      <dc:creator>Rohit Kumar</dc:creator>
      <pubDate>Sun, 29 Nov 2026 16:12:20 +0000</pubDate>
      <link>https://dev.to/tooltable/how-to-extract-text-from-receipts-and-screenshots-offline-using-browser-ocr-1256</link>
      <guid>https://dev.to/tooltable/how-to-extract-text-from-receipts-and-screenshots-offline-using-browser-ocr-1256</guid>
      <description>&lt;p&gt;When you need to copy an invoice number, expense line item, or tax ID from a receipt or screenshot, pasting the file into the first "free online OCR" search result is convenient—and surprisingly risky.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The Hidden Risk of Server-Backed Online OCR
&lt;/h2&gt;

&lt;p&gt;Receipts, screenshots, and scanned PDFs routinely contain sensitive data:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Full names, home/office addresses, and phone numbers&lt;/li&gt;
&lt;li&gt;GSTIN / tax identifiers, bank reference numbers, or partial card digits&lt;/li&gt;
&lt;li&gt;Internal error messages, staging URLs, or customer details from screenshots&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On a traditional server-side OCR site, uploading your file sends the raw image or PDF over HTTPS to a remote backend, where it may hit request logs, temporary object storage, or third-party processing APIs with unclear retention policies.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Desktop FOSS vs. Local Browser-RAM OCR
&lt;/h2&gt;

&lt;p&gt;If you want to keep sensitive documents on your own machine, you have two main zero-upload approaches:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;Examples&lt;/th&gt;
&lt;th&gt;Strengths&lt;/th&gt;
&lt;th&gt;Trade-offs&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Desktop FOSS&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Tesseract CLI (&lt;code&gt;tesseract receipt.png stdout&lt;/code&gt;), &lt;strong&gt;NAPS2&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;Great for large multi-page PDF batches and scripted folder pipelines&lt;/td&gt;
&lt;td&gt;Requires installing binaries and language data locally&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Client-side Browser OCR&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;WebAssembly + Web Worker OCR apps&lt;/td&gt;
&lt;td&gt;Zero installation, works cross-platform, runs purely in browser RAM&lt;/td&gt;
&lt;td&gt;Best for quick single images, receipts, and screenshots&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Modern browser OCR compiles engines like Tesseract to WebAssembly and runs inference inside a dedicated Web Worker so the UI stays responsive without any file leaving your device.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. How to Verify Zero Uploads in Chrome DevTools
&lt;/h2&gt;

&lt;p&gt;Never trust a "100% private" badge blindly—verify it in 5 seconds:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open the OCR page and press &lt;strong&gt;F12&lt;/strong&gt; (or &lt;strong&gt;Cmd+Option+I&lt;/strong&gt; on macOS) to open &lt;strong&gt;DevTools&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Go to the &lt;strong&gt;Network&lt;/strong&gt; tab and select the &lt;strong&gt;Fetch/XHR&lt;/strong&gt; filter (click the clear icon &lt;code&gt;🚫&lt;/code&gt; first).&lt;/li&gt;
&lt;li&gt;Drop in a test screenshot and run text extraction.

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pass:&lt;/strong&gt; Zero &lt;code&gt;POST&lt;/code&gt; requests containing your image or extracted text appear.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Extra check:&lt;/strong&gt; Switch the Network throttling dropdown from &lt;strong&gt;No throttling&lt;/strong&gt; to &lt;strong&gt;Offline&lt;/strong&gt; after the tool finishes loading—a true client-side OCR tool will still extract text with the network disabled.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  4. A Zero-Upload Browser Option
&lt;/h2&gt;

&lt;p&gt;If you want a ready-to-use client-side option, you can test &lt;a href="https://tooltable.info/tools/image/offline-ocr-scanner" rel="noopener noreferrer"&gt;Tooltable's Offline OCR Scanner&lt;/a&gt; (&lt;em&gt;disclosure: Tooltable is built by ReFind Global Studio&lt;/em&gt;). It runs OCR locally in browser RAM without uploading receipts or screenshots to a server.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>privacy</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Why You Should Never Paste Production JWTs or API JSON into Cloud Formatters</title>
      <dc:creator>Rohit Kumar</dc:creator>
      <pubDate>Sun, 29 Nov 2026 15:55:36 +0000</pubDate>
      <link>https://dev.to/tooltable/why-you-should-never-paste-production-jwts-or-api-json-into-cloud-formatters-3gmn</link>
      <guid>https://dev.to/tooltable/why-you-should-never-paste-production-jwts-or-api-json-into-cloud-formatters-3gmn</guid>
      <description>&lt;p&gt;Every developer has done it at least once during an incident: you copy a failing API response or a bearer token from staging or production, open the first online JSON formatter or JWT decoder in search results, and paste it in.&lt;/p&gt;

&lt;p&gt;It feels harmless because you just want readable indentation or a decoded &lt;code&gt;exp&lt;/code&gt; claim. The problem is that many web utilities are not running purely in your browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The Hidden Risk of Server-Backed Web Formatters
&lt;/h2&gt;

&lt;p&gt;A JWT is &lt;strong&gt;not encrypted&lt;/strong&gt; by default—it is just three Base64URL-encoded segments (&lt;code&gt;header.payload.signature&lt;/code&gt;). Even without your signing secret, anyone who receives that token can immediately read its claims (user IDs, emails, roles, tenant IDs, internal scopes) and, until it expires, &lt;strong&gt;replay the token&lt;/strong&gt; against your APIs.&lt;/p&gt;

&lt;p&gt;When you paste a live JWT, OAuth payload, or customer API JSON into a server-backed utility, your data can end up in:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;HTTP access logs &amp;amp; APM traces&lt;/strong&gt; (request bodies, query strings, or error payloads captured by reverse proxies and observability agents)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Analytics &amp;amp; session-replay scripts&lt;/strong&gt; (third-party trackers recording DOM mutations or &lt;code&gt;textarea&lt;/code&gt; inputs before sanitization)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database or cache retention&lt;/strong&gt; (for "shareable link" features or debugging dumps that sit unencrypted long after you close the tab)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Even if the tool claims it "doesn't store your data," server round-trips and third-party scripts create unnecessary exposure surfaces.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. How to Verify Any Online Dev Utility in 5 Seconds
&lt;/h2&gt;

&lt;p&gt;Before trusting a browser tool with sensitive tokens or customer payloads, run this quick two-step audit:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Inspect the Network Tab&lt;/strong&gt;: Open Chrome DevTools (&lt;code&gt;F12&lt;/code&gt; or &lt;code&gt;Ctrl+Shift+I&lt;/code&gt;), switch to the &lt;strong&gt;Network&lt;/strong&gt; tab, filter by &lt;strong&gt;Fetch/XHR&lt;/strong&gt; (and &lt;strong&gt;WS&lt;/strong&gt; for WebSockets), and paste dummy data into the tool. If clicking &lt;em&gt;Format&lt;/em&gt; or &lt;em&gt;Decode&lt;/em&gt; triggers an outbound request carrying your payload, the tool is sending data to a server.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test Offline Execution&lt;/strong&gt;: Load the page, then toggle &lt;strong&gt;Offline&lt;/strong&gt; in DevTools Network throttling (or turn off Wi-Fi / enable Airplane Mode). A truly client-side utility will continue formatting JSON and decoding JWTs locally in memory with zero network access.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  3. Safer Local Alternatives (CLI and Zero-Upload Browser Tools)
&lt;/h2&gt;

&lt;p&gt;For day-to-day debugging, keep sensitive payloads on your own machine:&lt;/p&gt;

&lt;h3&gt;
  
  
  Local CLI One-Liners
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Pretty-print JSON locally with jq&lt;/span&gt;
pbpaste &lt;span class="o"&gt;|&lt;/span&gt; jq .

&lt;span class="c"&gt;# Or using Python's built-in module (no extra packages)&lt;/span&gt;
cat response.json &lt;span class="o"&gt;|&lt;/span&gt; python3 -m json.tool

&lt;span class="c"&gt;# Decode a JWT payload locally with Node.js (no signature verification)&lt;/span&gt;
node -e &lt;span class="s2"&gt;"const p=process.argv[1].split('.')[1]; console.log(JSON.parse(Buffer.from(p,'base64url').toString()))"&lt;/span&gt; &lt;span class="s2"&gt;"&amp;lt;YOUR_JWT&amp;gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Zero-Upload Client-Side Browser Utilities
&lt;/h3&gt;

&lt;p&gt;When you prefer a visual UI—for example to inspect nested JSON trees, check human-readable &lt;code&gt;iat&lt;/code&gt;/&lt;code&gt;exp&lt;/code&gt; timestamps, or share a tool across teammates without CLI setup—choose utilities that execute &lt;strong&gt;100% locally in browser RAM&lt;/strong&gt; and work offline as a PWA.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I built Tooltable (&lt;code&gt;https://tooltable.info&lt;/code&gt;) at ReFind Global Studio, which runs a client-side &lt;a href="https://tooltable.info/tools/developer/jwt-decoder" rel="noopener noreferrer"&gt;JWT Decoder&lt;/a&gt; and &lt;a href="https://tooltable.info/tools/developer/json-formatter" rel="noopener noreferrer"&gt;JSON Formatter&lt;/a&gt; locally in your browser with offline PWA support.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Whatever tool you choose, make the 5-second Network-tab check a habit before pasting anything from production.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>security</category>
      <category>privacy</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
