<?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: pasindu Ishan</title>
    <description>The latest articles on DEV Community by pasindu Ishan (@pasindu_ishan_0d1fc34c8c3).</description>
    <link>https://dev.to/pasindu_ishan_0d1fc34c8c3</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%2F3916300%2F8fed4c3a-f24c-4eb9-a7e3-6f0af7b3df21.jpg</url>
      <title>DEV Community: pasindu Ishan</title>
      <link>https://dev.to/pasindu_ishan_0d1fc34c8c3</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pasindu_ishan_0d1fc34c8c3"/>
    <language>en</language>
    <item>
      <title>My JSON formatter's “Share” button was leaking pasted JSON to analytics</title>
      <dc:creator>pasindu Ishan</dc:creator>
      <pubDate>Tue, 29 Sep 2026 18:02:27 +0000</pubDate>
      <link>https://dev.to/pasindu_ishan_0d1fc34c8c3/my-json-formatters-share-button-was-leaking-pasted-json-to-analytics-pp</link>
      <guid>https://dev.to/pasindu_ishan_0d1fc34c8c3/my-json-formatters-share-button-was-leaking-pasted-json-to-analytics-pp</guid>
      <description>&lt;p&gt;I run a collection of browser-based developer tools at &lt;strong&gt;&lt;a href="https://jsondevtools.org/" rel="noopener noreferrer"&gt;JSON Dev Tools&lt;/a&gt;&lt;/strong&gt;, including a JSON formatter and JWT decoder. The main idea is simple: &lt;strong&gt;the data you paste into the tools should stay in your browser.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;While preparing the site for a review, I went back through some of my older code and found a problem in my JSON formatter's Share feature.&lt;/p&gt;

&lt;p&gt;The formatter wasn't sending the JSON to an API.&lt;/p&gt;

&lt;p&gt;The processing itself was entirely client-side.&lt;/p&gt;

&lt;p&gt;But the &lt;strong&gt;share link was putting the compressed JSON into the URL query string&lt;/strong&gt;, which meant the data could end up somewhere I didn't intend.&lt;/p&gt;

&lt;p&gt;Here's what happened and how I fixed it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bug
&lt;/h2&gt;

&lt;p&gt;The formatter has a Share button that creates a URL containing the formatted JSON.&lt;/p&gt;

&lt;p&gt;The JSON is compressed using &lt;code&gt;lz-string&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;compressed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;LZString&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;compressToEncodedURIComponent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;text&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="nx"&gt;location&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;origin&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;
  &lt;span class="nx"&gt;location&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;pathname&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;
  &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;?j=&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;
  &lt;span class="nx"&gt;compressed&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;At first glance, this seems reasonable. The compressed data is small enough to put in a URL, and the page can reconstruct the JSON when someone opens the link.&lt;/p&gt;

&lt;p&gt;The problem is the &lt;code&gt;?j=&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;That puts the data in the &lt;strong&gt;URL query string&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. The query string is sent with the request
&lt;/h3&gt;

&lt;p&gt;When someone opens a URL like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://jsondevtools.org/json-formatter?j=...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;the query string is part of the HTTP request.&lt;/p&gt;

&lt;p&gt;My site is static and hosted on GitHub Pages, so I don't operate a server that processes these requests myself. But the request still goes to the hosting infrastructure.&lt;/p&gt;

&lt;p&gt;That means the data isn't necessarily staying exclusively inside the browser anymore.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Analytics can see the URL
&lt;/h3&gt;

&lt;p&gt;This was the part I hadn't considered carefully enough.&lt;/p&gt;

&lt;p&gt;The site uses Google Analytics 4.&lt;/p&gt;

&lt;p&gt;GA4 can collect the page URL, including query parameters, through the &lt;code&gt;page_location&lt;/code&gt; parameter.&lt;/p&gt;

&lt;p&gt;So if someone opened a share URL containing compressed JSON, the JSON could be included in the analytics data as part of the page URL.&lt;/p&gt;

&lt;p&gt;The JSON formatter wasn't intentionally sending the user's data to analytics.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The URL itself was doing it.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That's an important distinction, because it meant the bug was easy to miss when looking only at the formatter's data-processing code.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix: use a URL fragment
&lt;/h2&gt;

&lt;p&gt;The solution was to move the compressed data from the query string into the URL fragment.&lt;/p&gt;

&lt;p&gt;Instead of:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/json-formatter?j=compressed-data
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;the share link now looks like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/json-formatter#j=compressed-data
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The code becomes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;compressed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;LZString&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;compressToEncodedURIComponent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;text&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="nx"&gt;location&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;origin&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;
  &lt;span class="nx"&gt;location&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;pathname&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;
  &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;#j=&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;
  &lt;span class="nx"&gt;compressed&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The important difference is that the fragment (&lt;code&gt;#...&lt;/code&gt;) is handled by the browser and &lt;strong&gt;is not sent as part of the HTTP request&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The page can read it locally:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;getSharedPayload&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;location&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;hash&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;indexOf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;#j=&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;location&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;hash&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;URLSearchParams&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;location&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;search&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;j&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This also gave me a way to keep old share links working.&lt;/p&gt;

&lt;h2&gt;
  
  
  Backwards compatibility
&lt;/h2&gt;

&lt;p&gt;There are already links using the old format.&lt;/p&gt;

&lt;p&gt;I didn't want to break them just because the implementation changed.&lt;/p&gt;

&lt;p&gt;So the loader supports both:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;?j=...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#j=...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For an old link, the JSON is loaded from the legacy query parameter and then the URL is cleaned up with &lt;code&gt;history.replaceState&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fixing the analytics side
&lt;/h2&gt;

&lt;p&gt;Moving the payload to the fragment protects the new share links from being sent in the HTTP request, but I still needed to consider the legacy &lt;code&gt;?j=&lt;/code&gt; URLs.&lt;/p&gt;

&lt;p&gt;The analytics configuration runs in the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; of the page, before the formatter's JavaScript has a chance to remove the old parameter.&lt;/p&gt;

&lt;p&gt;So simply doing this later:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;history&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replaceState&lt;/span&gt;&lt;span class="p"&gt;(...)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;isn't enough.&lt;/p&gt;

&lt;p&gt;Instead, I explicitly construct the URL that should be sent to Google Analytics:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;URLSearchParams&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;location&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;search&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;delete&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;j&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;qs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toString&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;pageLocation&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="nx"&gt;location&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;origin&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;
  &lt;span class="nx"&gt;location&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;pathname&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;
  &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;qs&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;?&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;qs&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;''&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nf"&gt;gtag&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;config&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;G-XXXXXXX&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="na"&gt;page_location&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;pageLocation&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now the &lt;code&gt;j&lt;/code&gt; parameter isn't included in the page location sent to analytics.&lt;/p&gt;

&lt;h2&gt;
  
  
  Testing the fix
&lt;/h2&gt;

&lt;p&gt;I didn't want to stop at reading the code.&lt;/p&gt;

&lt;p&gt;I tested the behavior in a browser:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Generate a new share link and verify that the JSON is stored after &lt;code&gt;#j=&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Open an old &lt;code&gt;?j=...&lt;/code&gt; share link and verify that the JSON still loads.&lt;/li&gt;
&lt;li&gt;Verify that the legacy &lt;code&gt;j&lt;/code&gt; parameter is removed from the address bar.&lt;/li&gt;
&lt;li&gt;Verify that unrelated query parameters remain intact.&lt;/li&gt;
&lt;li&gt;Run the analytics code against a fake URL containing a &lt;code&gt;j&lt;/code&gt; parameter.&lt;/li&gt;
&lt;li&gt;Confirm that the &lt;code&gt;page_location&lt;/code&gt; passed to &lt;code&gt;gtag&lt;/code&gt; doesn't contain the JSON payload.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What about old links?
&lt;/h2&gt;

&lt;p&gt;There is still an unavoidable limitation.&lt;/p&gt;

&lt;p&gt;Some old share links using the &lt;code&gt;?j=&lt;/code&gt; format may already exist.&lt;/p&gt;

&lt;p&gt;Opening one of those links still means the query string is sent with the initial request &lt;strong&gt;before the page has an opportunity to remove it&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;I can't retroactively change those URLs.&lt;/p&gt;

&lt;p&gt;I documented this limitation in the site's privacy policy rather than pretending that the new implementation somehow fixes historical links.&lt;/p&gt;

&lt;p&gt;New share links now use the fragment-based format.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;p&gt;The biggest lesson for me was that &lt;strong&gt;"the data is processed in the browser" isn't the same thing as "the data never leaves the browser."&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You need to look at the entire feature.&lt;/p&gt;

&lt;p&gt;For a privacy-focused browser tool, that includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Share links&lt;/li&gt;
&lt;li&gt;Query parameters&lt;/li&gt;
&lt;li&gt;URL fragments&lt;/li&gt;
&lt;li&gt;Analytics&lt;/li&gt;
&lt;li&gt;Error reporting&lt;/li&gt;
&lt;li&gt;Export functionality&lt;/li&gt;
&lt;li&gt;External APIs&lt;/li&gt;
&lt;li&gt;Third-party scripts&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In my case, the JSON processing was client-side and didn't need to change.&lt;/p&gt;

&lt;p&gt;The problem was the mechanism I used to make the processed data shareable.&lt;/p&gt;

&lt;h3&gt;
  
  
  A few practical rules I'm taking away
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;1. Be careful about putting user data in query parameters.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Query parameters are part of the HTTP request and can also appear in analytics, logs, referrers, browser history, and other places.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Consider URL fragments for client-side-only data.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Fragments aren't included in the HTTP request, which makes them useful for data that only needs to be interpreted by client-side JavaScript.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Don't forget analytics.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Analytics libraries operate independently from your application's data-processing logic.&lt;/p&gt;

&lt;p&gt;If user-controlled data can appear in the URL, check exactly what your analytics implementation sends.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Test the actual browser behavior.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Reading the code wasn't enough.&lt;/p&gt;

&lt;p&gt;I needed to verify the generated URL, legacy-link behavior, history replacement, and the actual value passed to analytics.&lt;/p&gt;

&lt;p&gt;A privacy promise is only as good as the least-obvious place where data can escape.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: I build and maintain the tools mentioned in this post at &lt;a href="https://jsondevtools.org/" rel="noopener noreferrer"&gt;jsondevtools.org&lt;/a&gt;. Feedback and corrections are welcome.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>bug</category>
      <category>debugging</category>
      <category>privacy</category>
      <category>security</category>
    </item>
    <item>
      <title>Introducing JSON Dev Tools — Free Online Developer Utilities for JSON &amp; APIs</title>
      <dc:creator>pasindu Ishan</dc:creator>
      <pubDate>Wed, 06 May 2026 15:50:02 +0000</pubDate>
      <link>https://dev.to/pasindu_ishan_0d1fc34c8c3/introducing-json-dev-tools-free-online-developer-utilities-for-json-apis-59jm</link>
      <guid>https://dev.to/pasindu_ishan_0d1fc34c8c3/introducing-json-dev-tools-free-online-developer-utilities-for-json-apis-59jm</guid>
      <description>&lt;p&gt;As developers, we constantly work with JSON — API responses, config files, logs, payloads, and data transformations.&lt;/p&gt;

&lt;p&gt;I recently built a small project called jsondevtools.org to make common JSON-related tasks faster and easier.&lt;/p&gt;

&lt;p&gt;Why I Built It&lt;/p&gt;

&lt;p&gt;While debugging APIs and backend services, I found myself repeatedly searching for tools to:&lt;/p&gt;

&lt;p&gt;Format JSON&lt;br&gt;
Validate broken payloads&lt;br&gt;
Decode JWT tokens&lt;br&gt;
Convert JSON to YAML or CSV&lt;br&gt;
Minify large responses&lt;/p&gt;

&lt;p&gt;Most existing tools were:&lt;/p&gt;

&lt;p&gt;overloaded with ads&lt;br&gt;
slow&lt;br&gt;
cluttered&lt;br&gt;
or missing useful developer-focused features&lt;/p&gt;

&lt;p&gt;So I decided to build a lightweight alternative focused on:&lt;/p&gt;

&lt;p&gt;speed&lt;br&gt;
simplicity&lt;br&gt;
clean UI&lt;br&gt;
privacy&lt;br&gt;
Current Features&lt;br&gt;
JSON Formatter &amp;amp; Validator&lt;/p&gt;

&lt;p&gt;Pretty-print and validate JSON instantly.&lt;/p&gt;

&lt;p&gt;JWT Decoder&lt;/p&gt;

&lt;p&gt;Decode JWT payloads directly in the browser.&lt;/p&gt;

&lt;p&gt;JSON ↔ YAML Converter&lt;/p&gt;

&lt;p&gt;Convert between JSON and YAML formats.&lt;/p&gt;

&lt;p&gt;JSON Minifier&lt;/p&gt;

&lt;p&gt;Reduce payload size quickly.&lt;/p&gt;

&lt;p&gt;Developer-Friendly UI&lt;br&gt;
Dark mode&lt;br&gt;
Mobile responsive&lt;br&gt;
Fast client-side processing&lt;br&gt;
No data uploaded to servers&lt;br&gt;
Built With&lt;br&gt;
HTML&lt;br&gt;
CSS&lt;br&gt;
JavaScript&lt;br&gt;
GitHub Pages&lt;/p&gt;

&lt;p&gt;The site is fully static and runs entirely in the browser.&lt;/p&gt;

&lt;p&gt;Future Plans&lt;/p&gt;

&lt;p&gt;I’m planning to expand this into a larger developer toolkit with:&lt;/p&gt;

&lt;p&gt;XML tools&lt;br&gt;
Base64 utilities&lt;br&gt;
Regex tester&lt;br&gt;
API testing helpers&lt;br&gt;
SQL formatting tools&lt;br&gt;
Schema generators&lt;br&gt;
Feedback Welcome&lt;/p&gt;

&lt;p&gt;I’d genuinely appreciate feedback from developers:&lt;/p&gt;

&lt;p&gt;UI improvements&lt;br&gt;
feature requests&lt;br&gt;
SEO/content ideas&lt;br&gt;
missing tools&lt;/p&gt;

&lt;p&gt;Website:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://jsondevtools.org" rel="noopener noreferrer"&gt;https://jsondevtools.org&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks for reading &lt;/p&gt;

</description>
      <category>api</category>
      <category>productivity</category>
      <category>showdev</category>
      <category>tooling</category>
    </item>
  </channel>
</rss>
