Layerbit

Layerbit Engineering Guides

In-depth technical writing on the formats, protocols and security details our tools deal with every day — the specification corners, the failure modes, and the bugs that only show up in production.

Latest guides

Security18 Oct 2026 · 9 min

How to Create a Strong Password, and Why Length Beats Symbols

How password cracking really works, entropy in bits, why a long random string beats a short complex one, Diceware passphrases, and the six rules that actually protect an account.

Read guide
Accessibility18 Oct 2026 · 10 min

WCAG Color Contrast Explained: Ratios, AA, AAA and APCA

How the contrast ratio is calculated, the 4.5:1 and 3:1 rules for text and UI, why brand colors fail on white, how to fix them in OKLCH, and where APCA disagrees in dark mode.

Read guide
Computer Science18 Oct 2026 · 9 min

Two's Complement Explained: How Computers Store Negative Numbers

The encoding every processor uses for signed integers, built from first principles, plus the real bugs it causes: Java's signed bytes, JavaScript's 32-bit operators, overflow and 2038.

Read guide
Code Style18 Oct 2026 · 8 min

camelCase vs snake_case vs kebab-case: Naming Conventions by Language

What the style guides for Python, JavaScript, Java, C#, Go and Rust require, conventions for SQL, URLs, CSS and headers, the acronym question, and converting at API boundaries.

Read guide
Documentation18 Oct 2026 · 8 min

Markdown Cheat Sheet: GitHub-Flavored Syntax With Examples

The syntax that renders the same everywhere, GitHub-Flavored tables, task lists and code fences, and the rules behind line breaks, nested lists, anchors and escaping.

Read guide
Security17 Oct 2026 · 12 min

JWT Signing Algorithms Compared: HS256, RS256, PS256, ES256 and EdDSA

Who can forge, how big the token gets, how fast it verifies, which key formats each one uses, the raw-versus-DER signature trap in ES256, and a plain rule for choosing.

Read guide
Data Formats17 Oct 2026 · 11 min

JSON Schema Validation Explained: The Keywords That Matter and the Ones That Bite

A schema is a set of constraints, not a drawing: why properties requires nothing, the unanchored pattern that fails open, the format nobody enforces, oneOf overlap, and what $ref really does.

Read guide
Version Control17 Oct 2026 · 10 min

Three-Way Merge Explained: Why Git Needs the Base Version and What a Conflict Really Is

Two versions cannot tell you who changed what; the common ancestor can. The four cases per line, why adjacent edits conflict, reading diff3 markers, and the four honest resolutions.

Read guide
Data Formats17 Oct 2026 · 9 min

JSONPath Cheat Sheet: Wildcards, Recursive Descent, Slices and Filters

The syntax that behaves the same in every tool, what $..key really searches, Python-style slices, filter predicates on @, why results are always a list, and where implementations disagree.

Read guide
Networking27 Sep 2026 · 11 min

Subnetting Explained: How to Read a CIDR Block and Size a Network

Why the prefix length is the whole story, how to read the third octet without a table, the ACL wildcard that matched everything, and a method for laying out a VPC that can still grow.

Read guide
Security Fundamentals27 Sep 2026 · 10 min

Hashing, Encryption and Encoding Are Three Different Things

A Base64 "encrypted" password is not protected and a CRC32 "hash" is not tamper-evident. One question separates the three — what is the operation for? — plus why passwords need none of them directly.

Read guide
Databases & Identifiers27 Sep 2026 · 10 min

UUID v4 vs v7 for Database Keys: Why Random Ids Get Slow

Random keys split B-tree pages all over the index; time-ordered v7 appends at the end. What changes, when v4 is still right, and how to store UUIDs so the index stays small.

Read guide
Time & Dates27 Sep 2026 · 12 min

Unix Time, ISO 8601 and Time Zones: The Rules Behind Every Off-by-One-Day Bug

Instants are not wall-clock times, a zone is not an offset, and JavaScript parses date-only strings as UTC but date-times as local. Every timestamp bug traces back to one of these.

Read guide
XML & Data Extraction27 Sep 2026 · 11 min

XPath Cheat Sheet: Selecting Nodes, Predicates and the Namespace Trap

The syntax behind 95% of real queries, why //item[2] and (//item)[2] differ, the XPath 1.0 function set browsers actually implement, and the default-namespace problem explained once.

Read guide
Text & Encoding27 Sep 2026 · 11 min

Invisible Unicode Characters: The Zero-Width Space and Its Relatives

A catalogue of the characters that render as nothing, where each arrives from, what it breaks, the bidi-override Trojan Source attack, lookalike letters, and how to strip them at the boundary.

Read guide
Databases27 Sep 2026 · 11 min

SQL Dialects Compared: Where MySQL, PostgreSQL, SQL Server and SQLite Disagree

Double quotes mean strings in MySQL and identifiers everywhere else; LIMIT is TOP in T-SQL; every date function differs. The divergences that stop queries, and why formatting is a review tool.

Read guide
Data Formats27 Sep 2026 · 10 min

JSON Syntax Errors Explained: What "Unexpected Token" Is Actually Telling You

The seven mistakes behind nearly every invalid document — trailing commas, single quotes, comments, NaN, bad escapes, BOMs — how to read the error, and how to find position 217.

Read guide
Authentication & Security12 Sep 2026 · 11 min

Decoding a JWT Is Not Verifying It

Anyone holding a token can read every claim inside it without a key. The gap between reading a token and trusting one is where alg: none, RS256→HS256 confusion, and most authentication bugs live.

Read guide
Scheduling & DevOps10 Sep 2026 · 10 min

The Cron Expression Rules That Catch Everyone Out

Why day-of-month and day-of-week combine as OR rather than AND, why */7 is not "every seven minutes", and how daylight saving quietly skips or doubles a job twice a year.

Read guide
Configuration & Data Formats8 Sep 2026 · 10 min

YAML's Sharpest Edges: The Norway Problem and Friends

Why the country code NO becomes the boolean false, 1.10 becomes 1.1, 0755 becomes 493, and 22:22 becomes 1342 — all of it specified behaviour.

Read guide
Data Formats6 Sep 2026 · 9 min

Why CSV Is Not Really a Format

RFC 4180 quoting rules, the locale that makes Excel open your file as one column, the type inference that corrupts leading zeros and gene names, and the formula injection hiding in your export.

Read guide
Performance & Security4 Sep 2026 · 10 min

How One Regular Expression Can Freeze Your Server

A validation pattern that runs in microseconds can take longer than the age of the universe on forty characters of carefully chosen input. Catastrophic backtracking, and the three pattern shapes that cause it.

Read guide
Web Fundamentals2 Sep 2026 · 9 min

URL Encoding: Why a Space Is Sometimes %20 and Sometimes +

Two different encodings both called "URL encoding", and they disagree about the space character. Reserved characters, encodeURI vs encodeURIComponent, and what %2520 tells you.

Read guide
Web Security29 Aug 2026 · 9 min

There Is No Such Thing as "Escaping" — Only Escaping For Something

HTML escaping protects element text and nothing else. Why an unquoted attribute breaks with a plain space, and why </script> ends a block from inside a JavaScript string.

Read guide
Encoding Fundamentals31 Aug 2026 · 8 min

What Base64 Actually Does (and What It Definitely Does Not)

How three bytes become four characters, why the overhead is exactly 33%, what the = padding is for, and why btoa() throws on an emoji.

Read guide
Compliance & Tax Technology27 Aug 2026 · 10 min

UAE E-Invoicing: What PINT-AE Actually Requires From Your System

PINT-AE for engineering teams: the UBL 2.1 structure, the five-corner model with the tax authority, the validation failures that recur, and the master-data cleanup worth starting now.

Read guide

Tool reference

Every utility in the suite, grouped by what it does. All of them run in your browser; the ones marked as local never send your input anywhere.

Data conversion & encoding

Base64 Encode / Decode

Convert text or file contents to and from Base64 for safe transport through text-only channels such as JSON, email and data URIs. See the Base64 guide for the padding and URL-safety rules.

CSV ↔ JSON Converter

Standards-correct CSV parsing — quoted commas, doubled quotes and embedded newlines all handled — with type inference, plus JSON back to CSV building the header from the union of all keys.

YAML ↔ JSON Converter

Convert in both directions and inspect the real parsed types, which is the fastest way to catch YAML's implicit conversions before they reach a pipeline.

URL Encoder / Decoder

Smart mode preserves URL structure while encoding query values; raw mode does strict component encoding. Includes an editable parameter grid and a batch mode for lists of URLs.

HTML Escape / Unescape

Convert between raw characters and HTML entities in both directions — handy for checking what a template escaped, and for spotting double-escaped output.

Unicode Inspector

Every code point with its UTF-8 and UTF-16 bytes, invisible and bidi characters made visible, normalization forms compared and mixed-script lookalikes flagged. Pairs with the escaping guide and the diff tool's invisible-character notes.

Code formatting & inspection

Flow: chain operations

Stack seventy-four operations — Base64, gzip, JWT, JSON and JSONPath, CSV, YAML, hashes, regex extraction, URL parsing, timestamps, AES — into one recipe with per-step previews, magic detection of what you pasted, presets and shareable links.

JSON Validator & Formatter

Validate, beautify and minify JSON, with a collapsible tree view alongside the raw text for navigating deeply nested API responses.

Universal SQL Formatter

Reformat queries into a consistent, readable shape across several database dialects, so diffs stay meaningful and reviews focus on logic.

JSON Table Viewer

Turn arrays of objects into a readable table, including records with differing key sets, for scanning large API payloads quickly.

Text Diff Checker

Compare two blocks of text or code side by side with the differences highlighted, for config drift and copy review.

Regex Tester

Live matching with capture-group breakdown and a replacement preview. Pair it with the backtracking guide before shipping a pattern.

Log Analyzer

Highlight errors, warnings and patterns across pasted log output to find the relevant lines faster.

XML Formatter & XPath Tester

Whitespace-aware pretty-printing, well-formedness errors with line and column, XPath 1.0 with automatic namespace binding, and an XML-to-JSON view.

Security & identity

JWT Decoder & Verifier

Split a token into header, payload and signature, and verify HMAC or RSA signatures locally with the Web Crypto API. Start with decoding vs verifying.

QR / Barcode Generator

Generate downloadable QR codes and barcodes for links and text, with structural risk hints on the encoded URL.

Hash & HMAC Generator

SHA-1/256/384/512 and MD5 of text or files with the Web Crypto API, HMACs for webhook signatures, and a constant-time checksum verifier.

UUID & ULID Generator

v4, time-ordered v7, namespace v5/v3 and ULIDs in bulk, with a decoder that reads version, variant and the embedded timestamp of any id.

Scheduling, networking & compliance

Cron Expression Generator

Build a schedule visually, read it back in plain English, and preview the next five run times in UTC. See the cron guide for the OR rule.

Unix Timestamp Converter

Epoch seconds, milliseconds, micro- and nanoseconds to ISO 8601, RFC 2822 and any IANA zone, with relative time, ISO weeks and date arithmetic. Companion to the cron guide.

CIDR & Subnet Calculator

IPv4 and IPv6 with exact 128-bit arithmetic: network, hosts, masks and wildcards, subnet splitting with CSV export, membership and supernet checks.

LayerLink Screen Sharing

Peer-to-peer browser screen sharing over WebRTC with no installation. Share a link from a desktop browser and view it from anywhere. The person you send the link to lands on the viewer, which explains what a session ID is and what to try when a connection will not establish.

UAE PINT-AE Compliance Checker

Check invoice data against the PINT-AE field structure and export PINT-AE style XML. Background in the UAE e-invoicing guide.