Mock APIs, webhooks and WebSockets — in seconds
Free developer tools — mock APIs, webhook tester, WebSocket tester, JSON formatter and more
- ✓ Free mock REST & WebSocket APIs
- ✓ AI-generated test data
- ✓ MCP server for AI agents
MockFox gives you a working backend before the real one exists: a hosted mock REST API, an AI generator that writes it for you, a webhook catcher and a WebSocket test server — plus the everyday utilities you reach for while debugging.
Mock servers
- Mock APIHost a fake REST API from JSON in seconds. CRUD, filters, pagination, custom routes.
- AI mock API generatorDescribe your API in plain English; get endpoints and realistic data.
- Webhook testerA URL that captures every request so you can inspect headers and payloads.
- WebSocket testerConnect to any ws:// or wss:// server, send messages, watch the log.
- Fake REST APIFree JSONPlaceholder-style endpoints: users, posts, todos, products, orders.
- WebSocket mock serverScripted wss:// endpoint: welcome messages, timed pushes, pattern replies.
Testing
AI & LLM
- LLM Token CounterPaste text, see tokens per model, % of context window and input cost.
- OpenAI TokenizerSee exactly how GPT splits your text, with token IDs.
- GPT Token CounterExact GPT token counts with context usage and cost per model.
- Claude Token CounterEstimate Claude tokens and cost; get the exact count_tokens code.
- LLM API Pricing CalculatorCompare monthly API cost for 50 models with caching and batch.
- OpenAI API Pricing CalculatorEstimate your OpenAI bill per request, day and month.
- Claude API Pricing CalculatorEstimate Anthropic Claude API costs with caching and batch.
- AI Cost CalculatorMonthly AI bill for your app from users and requests per user.
- Prompt Cost CalculatorPaste a prompt; see its cost on every model, per call and at scale.
- LLM Context Window ComparisonContext windows and max output for every major model, charted.
- JSON Schema GeneratorSample JSON → JSON Schema, OpenAI response_format or Claude tool.
Text
- Word CounterWords, characters, reading time, keyword density and readability as you type.
- Character CounterCharacters with and without spaces, platform limits and SMS segments.
- Diff CheckerCompare two texts or files side by side, with changed words highlighted.
- Case ConverterUPPER, lower, Title, Sentence, camelCase, snake_case, kebab-case and more.
- Remove Duplicate LinesDedupe a list while keeping its order, or find only the repeated lines.
- Sort Lines AlphabeticallyAlphabetize lines A–Z, sort numerically or naturally, reverse or shuffle.
- Text Cleaner — Remove Extra Spaces & Empty LinesRemove extra spaces, empty lines, invisible characters, HTML and smart quotes.
- Remove Line BreaksJoin hard-wrapped lines from PDFs and emails back into paragraphs.
JSON & data
- JSON Formatter & BeautifierPretty-print or minify JSON, sort keys and explore it as a tree.
- JSON ValidatorCheck JSON and get the exact line, column and fix for any error.
- JSON to CSV ConverterTurn JSON arrays into a spreadsheet-ready CSV, nested fields included.
- CSV to JSON ConverterParse CSV or TSV into typed JSON objects, with delimiter auto-detection.
- YAML to JSON ConverterConvert YAML (configs, Compose, Kubernetes) to JSON with precise errors.
- JSON to YAML ConverterTurn JSON into readable YAML, safe for YAML 1.1 and 1.2 parsers.
- JSON to TypeScript ConverterInfer TypeScript interfaces from a sample API response.
- JSON to Zod Schema GeneratorGenerate a Zod validation schema and its type from sample JSON.
Converters
- SQL FormatterBeautify or minify SQL queries for 14 dialects.
- HTML Formatter & BeautifierRe-indent messy or minified HTML and spot unclosed tags.
- HTML MinifierShrink HTML by removing comments, whitespace and redundant quotes.
- Markdown Editor with Live PreviewWrite Markdown with a live GitHub-style preview and HTML export.
- PX to REM ConverterConvert px ↔ rem, em and pt with your root font size.
- REM to PX ConverterConvert rem values back to pixels for any root size.
Design & CSS
- Color PickerPick any color and copy it as HEX, RGB, HSL, CMYK or OKLCH.
- HEX to RGB ConverterConvert #hex color codes to rgb() values and back.
- RGB to HEX ConverterTurn rgb(r, g, b) values into a #hex code.
- HEX to HSL ConverterConvert hex codes to hsl() and tweak hue, saturation and lightness.
- Color Contrast CheckerTest WCAG AA/AAA contrast and get the nearest passing color.
- CSS Gradient GeneratorBuild linear, radial and conic gradients and copy the CSS.
- CSS Box Shadow GeneratorDesign layered box-shadows and copy CSS or Tailwind.
- Color Palette GeneratorTurn one color into a 50–950 scale and harmony palettes.
Encoding & crypto
- JWT DecoderRead a JWT's header and claims, with expiry shown as a date.
- Base64 Encode & DecodeUTF-8 text to Base64 and back, URL-safe mode, files to data URIs.
- URL Encode & DecodePercent-encode or decode text and parse query strings into a table.
- Hash Generator (MD5, SHA-256 & more)MD5, SHA-1, SHA-256/384/512 and HMAC of text or files.
Generators
- UUID Generator (v4 & v7)Random v4 or sortable v7 UUIDs, up to 1,000 at once.
- Lorem Ipsum GeneratorPlaceholder paragraphs, sentences or words — plain text or HTML.
- Fake Data GeneratorRealistic users, products and orders as JSON, CSV or SQL.
- Random Number GeneratorRandom numbers in any range — unique, sorted, integers or decimals.
- Dice RollerRoll d4–d100 with modifiers and notation like 3d6+2.
- Coin FlipHeads or tails — flip one coin or 1,000 and see the stats.
- Random Name PickerPick winners from a list, shuffle it or split it into teams.
- Password GeneratorStrong random passwords with entropy, crack time and bulk mode.
- Passphrase GeneratorMemorable random word passwords with exact entropy.
- Random String GeneratorRandom alphanumeric, hex or custom-alphabet strings in bulk.
- API Key GeneratorPrefixed, hex or Base64URL API keys with 128+ bits.
- Barcode GeneratorCode 128, EAN-13, UPC-A, EAN-8 and Code 39 as SVG or PNG.
- UPC Barcode GeneratorUPC-A barcodes with automatic check digit, SVG or PNG.
- EAN-13 Barcode GeneratorEAN-13 and EAN-8 barcodes with check digit calculation.
- Code 128 Barcode GeneratorCompact Code 128 barcodes for any ASCII text.
- Code 39 Barcode GeneratorCode 3 of 9 barcodes with optional mod 43 check.
- QR Code GeneratorQR codes for links, Wi-Fi, vCards and more — with colors and logo.
- Wi-Fi QR Code GeneratorLet guests join your Wi-Fi with one scan.
Reference
- HTTP status codesEvery status code explained, with fixes and a live test endpoint.
- HTTP headers referenceRequest and response headers: caching, CORS, security, cookies.
- MIME types list & lookupFind the Content-Type for any file extension, and back.
- User agent parserSee your user agent; parse any UA into browser, OS and device.
- cURL converterTurn curl commands into fetch, Axios, Python or Go code.
Built for developers and AI agents
Every mock gets a public HTTPS URL with CORS enabled, so you can call it from a browser app, a test suite or CI. MockFox also runs an MCP server, so Claude, Cursor and other agents can create and call mocks for you.