Practical guide
JSON, YAML, UUID and developer tools: choosing a workflow
JSON is a data interchange format, not a language for executing code. Choose the workflow you need: formatting changes readability, comparison identifies structural differences, and escaping prepares plain text as a JSON string literal. Each step still needs review in the destination application.
Schema validation, samples and XML
The JSON Schema validator accepts a schema and data separately. It supports a declared bounded 2020-12 profile with types, properties, required, additionalProperties, items, anyOf, enum, const and bounds for numbers, strings and containers. Other keywords, including $ref, format and pattern, cause errors. Resources are not fetched, defaults are not inserted and types are not changed. The valid/issues report shows up to 20 JSON Pointer paths and keywords, without data values; it does not establish API-rule compliance.
The sample JSON generator uses the same profile. It creates one deterministic sample, preferring valid const, default or enum values and checking output before returning it. Choose all declared members or required members plus those needed for minProperties. This is not a random-person generator or complete solver. If simple candidates cannot satisfy a narrow interval, provide an explicit valid example; failure does not prove the schema unsatisfiable. Limits include 1,000 generated values, 100 array items and a 100,000-operation budget.
The XML converters have two explicit profiles. Oblicznik typed v1 encodes JSON under json version="1" using object, array, string, number, boolean and null elements, with member name for keys. It retains types and large-number tokens but is not an arbitrary API standard. The XML tree represents an ordinary element as name, attributes and children: text and attributes remain strings and child order is retained. CDATA becomes text; DTDs, comments, instructions and namespaces are rejected. Use the same profile in both directions. Input and output are capped at 50,000 UTF-16 units. Conversion does not validate XSD or destination rules.
Source: JSON Schema 2020-12 — Core; JSON Schema 2020-12 — Validation; W3C XML 1.0 — składnia, znaki i encje; Saxes — parser XML, zdarzenia i obsługa błędów.
UUID, YAML and sample-based schemas
UUID and GUID share one workflow here: UUIDv4 in 8-4-4-4-12 notation. Web Crypto supplies randomness and the engine sets version 4 and the RFC variant. Generate 1–100 identifiers, one per line, in lower or upper case. They contain neither time nor a MAC address; collisions are unlikely but not impossible. They are not replacements for passwords or authentication tokens.
JSON to YAML retains number tokens, quotes strings and keys, and uses two or four-space indentation. YAML to JSON supports a limited YAML 1.2 Core profile: one document, unique string keys, no anchors, aliases, merge (<<) or explicit tags. Comments, formatting style and indentation are not retained in JSON. Infinity and NaN are rejected. Untagged on, off and dates remain strings, but 001 is a number: quote identifiers. Large numbers are preserved lexically; receiving software may round them. Caps: 20,000 UTF-16 units for YAML, 50,000 for JSON, 32 container levels and 500,000 output units.
The JSON Schema 2020-12 generator describes only the observed sample. Members are required, numbers infer number, and differing array-item shapes form anyOf. Empty arrays leave items unconstrained. Additional members are allowed by default; closed mode adds additionalProperties: false to every object. Date formats, ranges, enum, business rules and $ref references are not inferred. This is not a validator. Review the schema and test representative data with an independent validator. Limits are 32 levels and 64 distinct shapes per array.
Source: IETF RFC 9562 — UUID, version 4 and variant; W3C Web Crypto — getRandomValues; YAML 1.2.2 — syntax and Core schema; yaml library — documents, types and parser options; JSON Schema 2020-12 — Core; JSON Schema 2020-12 — Validation.
CSV, TypeScript types and timestamps
JSON to CSV accepts a nonempty flat object array. Columns combine names in first-seen order, and missing members or null become empty cells. Number spellings are retained, but CSV does not carry types: string "true" and boolean true can look alike. Choose comma, semicolon or tab to match the importer; the delimiter does not change JSON decimal dots. CSV to JSON requires unique nonempty headers and equal column counts. All cells become strings, so 001 retains its zeros. Quoted cells may contain delimiters or newlines; an internal quote is doubled.
JSON to CSV blocks formula-like headers and strings by default, including after whitespace. Quoting a cell does not neutralize a formula. Raw mode retains content without apostrophes and requires deliberate text-only import. The filter cannot guarantee safety in every application. CSV to JSON executes nothing, but retained formula text can be risky on later export. CSV caps are 1,000 data rows, 100 columns, 10,000 cells and 50,000 input units; output is capped at 500,000 UTF-16 units. No Excel workbook or automatic flattening is produced.
The TypeScript generator creates export type Data from the sample only. Object members are required and differing array shapes form a union without automatic optional members. Null does not automatically become string | null. Empty arrays give unknown[]; empty objects give Record<string, never>. Limits are 32 levels, 64 distinct shapes per array and 500,000 output units. Review with API documentation and your compiler; the declaration does not validate data at runtime. Type number remains subject to JavaScript precision limits.
The Unix converter requires explicit seconds or milliseconds. Its epoch is 1970-01-01T00:00:00Z. Seconds permit up to three decimal places; milliseconds are integers. Enter dates with seconds and Z or an offset: 2026-07-01T12:00:00+02:00 denotes 10:00 UTC. Neither zone nor unit is guessed. Europe/Warsaw display uses the browser timezone database, including clock changes; the input offset is not validated against Warsaw rules. UTC instants in years 0001–9999 are supported, excluding leap seconds. Negative timestamps denote time before the epoch.
Source: IETF RFC 4180 — CSV records, headers and quoting; OWASP — spreadsheet formulas and CSV Injection risks; TypeScript Handbook — primitives, arrays and unions; MDN — Date, Unix epoch and time zones; IETF RFC 3339 — dates and times with explicit offsets.
Syntax and number preservation
A document can be an object, array or a single value such as true, null, a number or a quoted string. Member names require double quotes. Comments, single quotes, NaN, Infinity and trailing commas are unsupported. Validation errors show one-based line and column numbers; columns refer to UTF-16 units, not visual character width.
The formatter retains number tokens instead of converting them to Number values. It preserves 9007199254740993, 1.00 and 1e400 as written. This does not establish whether a receiving application can store them. If an identifier is defined as text, its type should come from the API schema rather than the appearance of its digits. Types are never changed automatically.
Minification removes only whitespace outside literals. Spaces inside "Ala ma kota" remain. Formatting and minification do not sort members, repair errors or create canonical output for digital signatures. Duplicate names are rejected even when different escapes decode to the same name.
Reading a comparison report
Comparison ignores object member order and formatting whitespace. Strings compare after escape decoding, so "a" and "\u0061" match. Unicode is not normalized: a composed letter can differ from a base letter with a combining mark. Number tokens compare by spelling, so 1 and 1.0 differ. This deliberate choice avoids rounding large numbers.
Arrays compare by zero-based index. Inserting a new first item shifts later items and can produce many differences. Items are not matched by identifier. Changing a type, for example an object to a string, is one change at the container path. Adding a complete object also creates one record rather than a record for every nested member.
Paths use JSON Pointer: /a identifies member a, /0 the first array item, and an empty string the document root. A slash inside a member name becomes ~1 and a tilde becomes ~0. The report is JSON containing paths and change kinds. It excludes document values, but member names may still reveal data. It is not JSON Patch or an automatic merge instruction.
Source: IETF RFC 6901 — JSON Pointer paths.
Escaping, privacy and output review
Escape accepts plain text and returns a complete quoted literal. Line breaks become escape sequences. Unescape requires a single quoted literal and decodes one layer. The empty literal "" is accepted, although an empty input field is not. Unescape does not accept objects or arrays; use the formatter to validate them.
Valid JSON does not automatically make content safe for HTML, SQL or URLs. Decoded text may contain markup and scripts. The preview displays them as plain text, but after copying you remain responsible for destination-specific encoding. There is no automatic publishing, code execution or API communication.
Inputs and results are not sent to a server or analytics or stored in the URL or persistent form storage. Editing clears the previous result; reset clears the form. Neither removes earlier clipboard copies, printouts or data visible to extensions. Use anonymized examples. Output is limited to 500,000 UTF-16 units and combined comparison-path lengths to 100,000 units. Exceeding a limit produces an error, not a partial result. Process larger documents with a local file tool.
Frequently asked questions
Are JSON5 and comments supported?
No. We support RFC 8259 JSON syntax within the documented profile. Comments and trailing commas must be corrected manually; they are not removed automatically.
Does validation establish API correctness?
No. Syntax is only the first step. Required members, types and business rules need checking against the specific API’s schema and documentation.
Is data stored?
Form contents and results are not stored. Remember that clipboard history, printouts and browser extensions are separate. Do not paste passwords or access tokens.
Sources and scope
These are technical tools, not a security audit or business-rule validation. The supported JSON profile excludes duplicate member names and unpaired Unicode surrogates. Limits: 50,000 UTF-16 units per field, 64 container levels, 10,000 values per document and 1,000 differences. Data remains in your browser; avoid secrets.
- IETF RFC 8259 — JSON syntax and interoperability
- IETF RFC 6901 — JSON Pointer paths
- IETF RFC 4180 — CSV records, headers and quoting
- OWASP — spreadsheet formulas and CSV Injection risks
- TypeScript Handbook — primitives, arrays and unions
- MDN — Date, Unix epoch and time zones
- IETF RFC 3339 — dates and times with explicit offsets
- IETF RFC 9562 — UUID, version 4 and variant
- W3C Web Crypto — getRandomValues
- YAML 1.2.2 — syntax and Core schema
- yaml library — documents, types and parser options
- JSON Schema 2020-12 — Core
- JSON Schema 2020-12 — Validation
- W3C XML 1.0 — składnia, znaki i encje
- Saxes — parser XML, zdarzenia i obsługa błędów
Tools covered by this guide
JSON formatter and validator
Check JSON syntax, add indentation or remove unnecessary whitespace without rounding numbers.
JSON comparison
Compare two JSON documents and find added, removed or changed members using JSON Pointer paths.
JSON escape and unescape
Turn plain text into a quoted JSON string literal or decode one layer of JSON escape sequences.
JSON to CSV converter
Convert a flat JSON object array to CSV or TSV, with explicit rules for empty cells and formula-like text.
CSV to JSON converter
Convert CSV or TSV with a header to a JSON object array without guessing cell types.
JSON to TypeScript type generator
Infer a Data type declaration from a JSON sample, with array unions and explicit limitations.
Unix timestamp converter
Convert Unix seconds or milliseconds to UTC and Warsaw time, or an explicitly offset date to a timestamp.
UUID and GUID generator
Generate 1–100 UUIDv4 identifiers using Web Crypto randomness, locally and without a timestamp.
JSON to YAML converter
Convert JSON into readable YAML with quoted strings, no anchors and unchanged number tokens.
YAML to JSON converter
Read a single YAML 1.2 document and produce JSON without alias expansion or lost large numbers.
JSON Schema generator
Create a working JSON Schema 2020-12 from a sample with an explicit additional-object-members policy.
JSON Schema validator
Check JSON data against a declared 2020-12 schema profile without network references or data mutation.
Sample JSON generator
Create one deterministic sample from a bounded schema and check it before returning output.
JSON to XML converter
Write JSON in a declared typed profile or reconstruct elements from an XML tree without guessing types.
XML to JSON converter
Read the typed profile or ordinary XML as a tree retaining attributes, text and child order.