In this guide

FormatBits is a browser-based developer data-formatting workbench for three enabled tasks: JSON formatting, validation and minification; URL encoding and decoding; and Unix timestamp conversion. It is framed around quick checks before a commit: paste a payload, choose an explicit operation, review readable output, and copy only what you need. The workbench is intentionally narrow. It does not present itself as a Base64 converter, a text utility suite, or a schema validator. That boundary matters because clear tool limits make it easier to trust what an operation does and what it does not do. This guide explains the JSON formatter workflow first, then the URL codec and timestamp converter, followed by privacy, limits, and onboarding notes.
Product scope and module boundaries
FormatBits is framed as a small developer workbench for three enabled modules: JSON formatting and minification, URL encoding and decoding, and Unix timestamp conversion. The scope is deliberately narrow. The JSON module is for pretty-printing, compacting, and syntax checking JSON text. The URL module is for encode and decode operations with an explicit scope choice. The timestamp module is for Unix-to-date and date-to-Unix conversions. The product should not imply that Base64 conversion, general text utilities, or structured-data transforms are part of the enabled set unless those tools are actually present.
That boundary is useful for onboarding. A developer who needs to make a payload readable before a commit should not have to guess whether a tool is a formatter, a validator, or a schema checker. FormatBits should state plainly that its JSON check is a formatting and syntax check, not a schema check. It should also avoid suggesting that a built-in JSON diff view exists. Comparing before-and-after changes is a manual review workflow in this scope: format one version, format the other, and inspect the relevant fields side by side. Clear module boundaries reduce false expectations and make the three enabled tools easier to learn.
JSON formatting and validation workflow
The JSON workflow starts with an explicit operation. Paste or type JSON into the editor, run the check, then choose pretty output or compact output. Pretty output uses indentation of 2 spaces, 4 spaces, or a tab. Compact output minifies the document by removing insignificant whitespace. For a mobile-first review, a 2-space default is the most practical starting point: it preserves hierarchy without pushing deeply nested content too far off screen. The user can still switch to 4 spaces or a tab when a team style requires it.
Run the check with the advertised Ctrl/⌘ + Enter shortcut or the visible action. The check is a syntax check, not a schema check. If parsing succeeds, the formatter can produce clean output. If parsing fails, the formatter should not pretend the document is valid; it should surface the failure so the user can fix the structure and run the check again. A missing comma between members or a missing closing bracket usually appears as a parse failure, so the practical debugging loop is: read the status message, inspect the area around the reported problem, repair the punctuation, and re-run the check.
Duplicate keys need careful treatment. The formatter keeps duplicate keys and flags them rather than silently deleting data. That flag is a syntax-review aid, not a schema verdict. The JSON check should not label a duplicate key as a schema error, because it has no schema to compare against. Numeric precision must also be preserved: a number should not be rounded or reformatted into a different value merely because it passed through the formatter. Users should review the output for the values that matter to them, especially identifiers, prices, and large integers.
A safe review-and-copy workflow is: paste the payload, run the check, choose pretty or compact output, select the indentation if pretty output is active, scan the status and duplicate-key notices, compare the output against the input where changes matter, then use the copy control. For before-and-after comparison, format the old response and the new response separately and review the fields that changed. Do not assume a dedicated diff view; the current scope treats comparison as a manual review habit.
Accessibility expectations should be built into this workflow. Dual-pane or editor-plus-output layouts should stack cleanly on small screens and keep visible labels for input, output, operation, and indentation. Status messages should be announced in a live region and should not rely on color alone. Copy controls should have accessible names, visible focus states, and confirmation text after activation. Keyboard users should be able to reach the editor, operation choices, check action, and copy action without a pointer.
URL codec operation design
The URL codec has two operation choices: encode and decode. It also has a scope choice that should be unmistakable: treat the input as one value, or treat it as a whole URL. A two-step selector is clearer than a hidden toggle. The interface should keep the operation and scope visible next to the input, repeat them in the result area, and use plain labels such as Encode and Decode, One value and Whole URL. A short example preview can show what will be encoded or decoded before the user commits to the operation.
In one-value mode, reserved characters including /, ?, &, and = are encoded so the text can be embedded as a query parameter or path segment. In whole-URL mode, the separators that give a URL its structure are kept, while the relevant URL components are encoded. This distinction prevents a common mistake: encoding an entire URL when only one parameter value needs escaping, or leaving reserved characters unencoded when a value must be safely embedded.
Plus-for-spaces behavior should be explicit. In form-style URL data, a plus sign can represent a space, but that convention is not universal. The decoder should state how it treats plus signs, and the encoder should make the chosen space representation visible. Unicode text should be handled as UTF-8 so non-ASCII characters round-trip predictably, and the output should be displayed as plain text rather than as an opaque blob. While specific size limits are not part of the public facts, practical limits are communicated in the privacy section below. When a limit is exceeded, the tool should stop and explain the limit instead of producing a partial result.
A useful visual for this module is a two-step diagram: first choose encode or decode, then choose one value or whole URL. The diagram should show how the same input changes under each scope so the scope choice is learned rather than memorized. This is also a good place to demonstrate safe copying: review the decoded text for unexpected characters, confirm the scope, and only then copy the result into a request, configuration file, or bug report.
Timestamp conversion and reference outputs
Timestamp conversion supports two directions: Unix-to-date and date-to-Unix. The input unit must be explicit. A Unix value can be entered as seconds or milliseconds; the tool should not guess from the number of digits. Seconds allow up to three decimal places, while milliseconds must be whole numbers. Negative timestamps are supported, so dates before the Unix epoch should not be rejected simply because the value is below zero.
For date input, the expected format should be stated clearly in the interface. The converter should label the reference outputs clearly: UTC time, local time, and Unix time in the chosen unit. Local time depends on the browser or device timezone, so the label should say local rather than implying a fixed office timezone. UTC should be labeled as UTC. If the input is ambiguous, the interface should ask for an explicit unit or timezone rather than silently choosing one.
A practical workflow is: choose the direction, choose seconds or milliseconds, paste the value or date, run the conversion, then compare the UTC, local, and Unix outputs. For Unix-to-date, verify that the UTC output is the canonical reference and that local output matches the user’s own timezone. For date-to-Unix, confirm the input includes the intended offset or UTC designator, then check that the returned unit matches the selected unit. Negative values should be tested with the same care as positive values because they exercise a different part of the date range.
Timestamp errors are often unit errors. A value that looks like a date in milliseconds but is interpreted as seconds will land in a very different year, and the reverse can also happen. The interface should make the selected unit persistent and visible in the result, not buried in a menu. Reference outputs should be grouped so the user can copy the one they need without copying a label by mistake.
Privacy, limits, and safe-copy behavior
FormatBits is designed for browser-based, in-memory operation. The exact privacy guarantees are not documented in the facts, but the product framing emphasizes no uploads, no saved input, and clearing input on leave or refresh. That privacy model is useful for quick checks, but it is not a reason to paste secrets casually. A browser-based tool can still display sensitive data on screen, in a screenshot, or in a shared clipboard. Users should paste only data they are permitted to handle and should review output before copying or sharing it.
Limits are important for predictability. While the exact size limit is not part of the confirmed facts, the product should apply a reasonable cap to prevent a very large paste from freezing the interface. When input exceeds the limit, the tool should show a clear message and avoid producing a misleading partial result. The limit is also a reminder that this is a quick-check workbench, not a bulk data-processing pipeline.
Safe-copy behavior should be explicit. The copy control should copy the result area, not the input area, and it should confirm what was copied. Status messages should be readable by assistive technology, and success or failure should not be conveyed by color alone. If the output is long, the user should be able to review it before copying. The final habit is simple: check the operation, check the scope or unit, review the output, then copy.
Supporting articles and onboarding
The supporting content should stay inside the three enabled modules and help beginners build repeatable habits. Draft field notes should be revised into short, task-based articles with a clear input, a visible operation choice, an expected output, a common mistake, and a privacy reminder. They should not be written as claims of personal testing, and they should not copy source paragraphs. Each note should end with a next action that a beginner can repeat on the next payload.
For JSON, the first article should walk through debugging an API response: paste a dense response, run the syntax check, choose pretty output with 2-space indentation, and review the fields that matter. A second article should demonstrate manual before-and-after comparison: format the old and new responses, identify the changed field, and confirm that duplicate keys and numeric values are handled as expected. A third should focus on missing commas and brackets: show how a parse failure prevents clean output, then repair the punctuation and re-run the check. A fourth should explain indentation choices for mobile review, team style, and compact output.
For the URL codec, the onboarding article should compare one-value and whole-URL scope with the same sample input, then show how reserved characters and separators change. It should also explain plus-for-spaces behavior and Unicode handling. For timestamps, the article should contrast seconds and milliseconds, show an example date input, and label UTC, local, and Unix outputs. A short negative-timestamp example will prevent the assumption that all Unix values are positive. The onboarding path should present these articles as optional practice, not as prerequisites, so a developer can start with the formatter and learn the other modules when needed.