Skip to content

FORMATBITS / FIELD NOTES

Uncategorized

  • Put two offset timestamps on the same UTC timeline

    One support note reports an event at 2024-01-15T09:30:00+08:00. Another records 2024-01-15T01:35:00Z. Sorting those strings by their displayed hour can put the events in the wrong order. Put both readings in UTC Choose ISO input and paste the first timestamp with the offset. Its UTC time is 2024-01-15T01:30:00Z. Paste the second timestamp. Its UTC time remains…

    Read the field note ↗

  • Encode a search filter without splitting the query

    Suppose a catalog filter needs to search for the literal label “Tea & Cakes” and sort by price. The ampersand in the label belongs to one value. The ampersand before the sort parameter separates two parameters. Encode just the value In the URL codec, select Encode and One value. Paste Tea & Cakes. The expected…

    Read the field note ↗

  • Compare two API response shapes with a small JSON fixture

    An API can still return valid JSON after a change that breaks its clients. For example, a new response might put items under data while an older client reads it at the root. A small fixture makes that kind of change visible without sharing customer records. Prepare two synthetic responses {“items”:[{“id”:”A17″,”available”:true}],”next”:null} {“data”:{“items”:[{“id”:”A17″,”available”:true}]},”next”:null} Format one line…

    Read the field note ↗

  • Decode Base64 Authentication Tokens to Inspect Credentials

    This guide explains the mechanics of HTTP Basic Authentication, the exact steps to decode a Base64 token into a username:password pair, security caveats around encoding versus encryption, and safe handling practices for audited credentials.

    Read the field note ↗

  • FormatBits Browser Tools: Unix Timestamp Converter, JSON Formatter, and URL Codec Guide

    FormatBits provides three browser-based end-user tools: JSON Formatter, URL Encoder & Decoder, and Unix Time Converter. Inputs are processed locally without uploads, and every tool has a 256 KiB source limit. The timestamp converter supports Unix-to-date and date-to-Unix directions, accepts seconds with up to three decimals or whole milliseconds, supports negative timestamps, and shows results…

    Read the field note ↗

  • Minify JSON API Responses to Reduce Payload Size

    This guide explains JSON minification for API transport, compares compact output with pretty-printing, reviews measured size impacts and mobile CPU trade-offs, and lists pre-send validation checks for FormatBits json-format Compact mode.

    Read the field note ↗

  • URL-Encode Special Characters in Passwords for Safe Requests

    This guide explains percent-encoding for password characters in URLs and form values, lists characters that commonly need encoding, distinguishes whole-URL encoding from single-value encoding, and outlines safer authentication practices such as POST bodies over HTTPS.

    Read the field note ↗

  • Formatting Nested JSON API Responses with FormatBits for Debugging

    This guide explains how developers can inspect, validate, and format nested JSON API responses using FormatBits. It covers pretty-printing techniques for revealing object boundaries and arrays, JSON syntax rules and Google property-naming conventions, privacy-safe tool behavior with input limits, and a repeatable debugging checklist for API payloads.

    Read the field note ↗

  • Decode URL Parameters from a Browser Address Bar: A Developer Guide

    This guide explains how to identify encoded query parameters in a browser address bar, decode whole URLs versus individual values using JavaScript, understand server-side decoding, recognize double-encoding risks, and apply validation steps before trusting decoded input. It also maps the workflow to FormatBits URL Codec limits.

    Read the field note ↗

  • JSON vs. JavaScript Object Literals: How to Tell Them Apart

    JSON text and JavaScript object literals can look identical, but they serve different roles. Use small syntax checks to distinguish them, recognize their overlap, and choose the right next step without confusing valid JSON with valid application data.

    Read the field note ↗