<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Converter on JsonKit Blog</title>
    <link>https://jsokit.com/blog/tags/converter/</link>
    <description>Recent content in Converter on JsonKit Blog</description>
    <generator>Hugo</generator>
    <language>en</language>
    <copyright>© 2025 JsonKit</copyright>
    <lastBuildDate>Sat, 09 May 2026 17:52:56 +0000</lastBuildDate>
    <atom:link href="https://jsokit.com/blog/tags/converter/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Unit Converter: From Floating-Point Precision to Temperature Offsets</title>
      <link>https://jsokit.com/blog/posts/unit-converter-from-floating-point-precision-to-temperature-offsets/</link>
      <pubDate>Sat, 09 May 2026 17:52:56 +0000</pubDate>
      <guid>https://jsokit.com/blog/posts/unit-converter-from-floating-point-precision-to-temperature-offsets/</guid>
      <description>Unit Converter: From Floating-Point Precision to Temperature Offsets I recently needed to convert between inches and centimeters for a project. Wrote a quick formula, but the result didn&amp;rsquo;t match the design specs—that&amp;rsquo;s when I realized unit conversion isn&amp;rsquo;t as simple as it looks.&#xA;Basic Conversion: The Base Unit Method The obvious approach is direct formulas:&#xA;// Inch to centimeter const inchToCm = (inch) =&amp;gt; inch * 2.54 // Centimeter to inch const cmToInch = (cm) =&amp;gt; cm / 2.</description>
    </item>
    <item>
      <title>Understanding Radix Conversion: From Binary to Hexadecimal Algorithms</title>
      <link>https://jsokit.com/blog/posts/understanding-radix-conversion-from-binary-to-hexadecimal-algorithms/</link>
      <pubDate>Sat, 25 Apr 2026 09:14:41 +0000</pubDate>
      <guid>https://jsokit.com/blog/posts/understanding-radix-conversion-from-binary-to-hexadecimal-algorithms/</guid>
      <description>Understanding Radix Conversion: From Binary to Hexadecimal Algorithms While building a radix converter tool, I revisited the fundamentals of number base conversion. Although parseInt and toString handle most cases, understanding the underlying algorithms is crucial for dealing with edge cases.&#xA;JavaScript Built-in Conversion The simplest approach uses JavaScript&amp;rsquo;s built-in methods. Number.prototype.toString(radix) converts decimal to any base:&#xA;const num = 255 num.toString(2) // &amp;#34;11111111&amp;#34; (binary) num.toString(8) // &amp;#34;377&amp;#34; (octal) num.toString(16) // &amp;#34;ff&amp;#34; (hexadecimal) Reverse conversion uses parseInt(string, radix):</description>
    </item>
    <item>
      <title>From PX to REM: Unit Conversion in Responsive Design</title>
      <link>https://jsokit.com/blog/posts/from-px-to-rem-unit-conversion-in-responsive-design/</link>
      <pubDate>Thu, 23 Apr 2026 12:37:47 +0000</pubDate>
      <guid>https://jsokit.com/blog/posts/from-px-to-rem-unit-conversion-in-responsive-design/</guid>
      <description>From PX to REM: Unit Conversion in Responsive Design I inherited a legacy project with hardcoded px values everywhere. The product team wanted user-customizable font sizes. I opened the CSS files—2,000+ px values staring back at me. That was the day I truly understood the value of rem.&#xA;I built a PX/REM Converter to handle this, and here&amp;rsquo;s what I learned.&#xA;What REM Actually Means rem stands for &amp;ldquo;root em&amp;rdquo;—relative to the root element&amp;rsquo;s font-size.</description>
    </item>
    <item>
      <title>JavaScript Number Base Converter: From parseInt to Bitwise Operations</title>
      <link>https://jsokit.com/blog/posts/javascript-number-base-converter-from-parseint-to-bitwise-operations/</link>
      <pubDate>Sat, 18 Apr 2026 20:11:50 +0000</pubDate>
      <guid>https://jsokit.com/blog/posts/javascript-number-base-converter-from-parseint-to-bitwise-operations/</guid>
      <description>JavaScript Number Base Converter: From parseInt to Bitwise Operations Published: April 29, 2026, 11:00&#xA;Last week while debugging a network protocol, I found myself constantly converting numbers between binary, octal, decimal, and hexadecimal formats. Opening the calculator every time was tedious, so I decided to build an online number base converter. This seemingly simple tool has some interesting technical details worth sharing.&#xA;The Core Principle of Base Conversion Base conversion is fundamentally about positional notation.</description>
    </item>
    <item>
      <title>Memory Unit Converter: From 1024 to Petabytes - Implementation Deep Dive</title>
      <link>https://jsokit.com/blog/posts/memory-unit-converter-from-1024-to-petabytes-implementation-deep-dive/</link>
      <pubDate>Wed, 15 Apr 2026 14:02:21 +0000</pubDate>
      <guid>https://jsokit.com/blog/posts/memory-unit-converter-from-1024-to-petabytes-implementation-deep-dive/</guid>
      <description>Memory Unit Converter: From 1024 to Petabytes - Implementation Deep Dive Building a file upload feature recently, I needed to display file sizes. The backend returns byte counts in the millions - users stare at 15728640 and wonder, &amp;ldquo;How big is that?&amp;rdquo; So I built a memory unit converter.&#xA;The Core Question: Why 1024? Computers store data in bits, with 8 bits forming 1 Byte. After that, each unit scales by 1024 (that&amp;rsquo;s 2^10):</description>
    </item>
    <item>
      <title>From Regex to AST: Building a Markdown to HTML Parser</title>
      <link>https://jsokit.com/blog/posts/from-regex-to-ast-building-a-markdown-to-html-parser/</link>
      <pubDate>Tue, 14 Apr 2026 15:16:01 +0000</pubDate>
      <guid>https://jsokit.com/blog/posts/from-regex-to-ast-building-a-markdown-to-html-parser/</guid>
      <description>From Regex to AST: Building a Markdown to HTML Parser I needed a Markdown to HTML converter for a developer toolbox project. My first thought was to use marked.js, but then I realized — the core logic isn&amp;rsquo;t that complex. Why not implement it myself and learn how parsers work?&#xA;Why Not Use an Existing Library? marked.js is powerful, but has some drawbacks:&#xA;Large bundle size: 40KB minified, overkill for basic features Over-engineered: Supports GFM, tables, footnotes — I just need headings, lists, code blocks Black box: Hard to debug when something goes wrong A custom implementation is under 100 lines of core code, and you learn parser fundamentals.</description>
    </item>
    <item>
      <title>JSON/XML/YAML Format Converter: From Parsers to Data Structure Mapping</title>
      <link>https://jsokit.com/blog/posts/jsonxmlyaml-format-converter-from-parsers-to-data-structure-mapping/</link>
      <pubDate>Mon, 02 Mar 2026 15:50:29 +0000</pubDate>
      <guid>https://jsokit.com/blog/posts/jsonxmlyaml-format-converter-from-parsers-to-data-structure-mapping/</guid>
      <description>JSON/XML/YAML Format Converter: From Parsers to Data Structure Mapping Recently I worked on a config file conversion requirement that needed bidirectional conversion between JSON, XML, and YAML formats. I thought it would be simple, but I hit quite a few pitfalls.&#xA;Essential Differences Between the Three Formats First, understand the data structure level differences:&#xA;JSON: Tree structure, supports six types: object, array, string, number, boolean, null.&#xA;XML: Nested tags, distinction between attributes and child elements, self-closing tags, namespaces.</description>
    </item>
    <item>
      <title>ICO File Format Demystified: Building a PNG to ICO Converter from Scratch</title>
      <link>https://jsokit.com/blog/posts/ico-file-format-demystified-building-a-png-to-ico-converter-from-scratch/</link>
      <pubDate>Thu, 26 Feb 2026 15:44:31 +0000</pubDate>
      <guid>https://jsokit.com/blog/posts/ico-file-format-demystified-building-a-png-to-ico-converter-from-scratch/</guid>
      <description>ICO File Format Demystified: Building a PNG to ICO Converter from Scratch I recently needed to add favicon generation to a project. Thought I could just rename a PNG to .ico and call it a day. Nope. ICO is a proper binary container format with its own structure. Here&amp;rsquo;s what I learned.&#xA;ICO Structure: Not Just a Renamed Image An ICO file is a container that holds multiple icon images at different sizes.</description>
    </item>
    <item>
      <title>Building a Document Format Converter: From TXT/Markdown/HTML to Any Format</title>
      <link>https://jsokit.com/blog/posts/building-a-document-format-converter-from-txtmarkdownhtml-to-any-format/</link>
      <pubDate>Sun, 08 Feb 2026 17:58:53 +0000</pubDate>
      <guid>https://jsokit.com/blog/posts/building-a-document-format-converter-from-txtmarkdownhtml-to-any-format/</guid>
      <description>Building a Document Format Converter: From TXT/Markdown/HTML to Any Format Every time I need to embed a Markdown document into a webpage or extract plain text from HTML, I end up installing desktop software or writing scripts. But the core logic of document format conversion isn&amp;rsquo;t that complex — browser APIs can handle most cases. Let me walk through building a pure frontend document converter.&#xA;The Essence: Re-encoding Text Document format conversion sounds fancy, but it boils down to three steps: read source file → parse content structure → re-encode in target format.</description>
    </item>
    <item>
      <title>From cURL to Multi-Language Code: Building a cURL Converter</title>
      <link>https://jsokit.com/blog/posts/from-curl-to-multi-language-code-building-a-curl-converter/</link>
      <pubDate>Fri, 06 Feb 2026 14:46:01 +0000</pubDate>
      <guid>https://jsokit.com/blog/posts/from-curl-to-multi-language-code-building-a-curl-converter/</guid>
      <description>From cURL to Multi-Language Code: Building a cURL Converter When debugging APIs, I often find myself using the &amp;ldquo;Copy as cURL&amp;rdquo; button in browser DevTools. The copied command is convenient, but when it&amp;rsquo;s time to write actual code, I have to manually convert it to JavaScript fetch or Python requests. So I built an automatic converter. Here&amp;rsquo;s how it works.&#xA;cURL Parsing: The Art of Regular Expressions cURL commands look simple, but parsing them has nuances.</description>
    </item>
  </channel>
</rss>
