Web App · Developer Tooling

Turn HAR Files and "Copy as Fetch" into Clean API Documentation

TL;DR

Drop a .har file or paste "Copy as fetch", select the calls you want, remove or mask secret keys, and copy a beautified request/response sequence.

Updated 1 min read

JavaScriptHTML / CSSHARRegex

Download source (ZIP)v1.0.0 · 3 files · 68 KB · MIT license

Abstract

The problem

API behaviour is scattered across the browser Network tab, and copying URLs, methods and minified JSON bodies one by one is slow and unreadable.

The solution

A centralised API clipboard that bulk-imports .har files or parses fetch strings, beautifies, filters and sequences the calls into one document.

The result

A clean, organised API sequence ready for AI prompts, technical docs or bug reports.

Input & Output

Input
  • A .har file (drag-and-drop) or a "Copy as fetch" string plus raw response
Output
  • One structured, beautified text block with stats and a Copy button
Optional output
  • Filtered output with keys removed or wrapped as [...]
  • Deduplicated and re-ordered request sequence

System Diagram

How It Works

Dual input

Manual fetch parsing for one issue, or bulk HAR import for a whole flow.

JSON beautifier

Detects stringified JSON and applies 2-space indentation.

Privacy filters

Recursively remove or wrap keys such as token or password.

Deduplication

Removes identical, repetitive calls.

Custom composition

Show or hide URL, payload and response; Move Up / Move Down ordering.

Configuration

OptionPurpose
Advanced FiltersKeys to remove or wrap across all selected requests.
Visibility togglesInclude URL, request payload and/or response body.

How to Run

Option A
# Paste a "Copy as fetch" string into Manual Input
Option B
# Drop a .har file onto the dashed drop-zone
Finish
# Select requests → Remove Duplicates → Generate Output → Copy

Source Code

preview

Loading…

Download source (ZIP)v1.0.0 · 3 files · 68 KB · MIT license

Released under the MIT license. Free to use, modify and share.

Impact & Benefits

Gives AI models the exact network sequence to find logic errors.
Rapid "Example Request/Response" sections for API docs.
QA can turn a bug trace into a readable report in seconds.
The Wrap filter keeps tokens and private data out of shared logs.

Screenshots

1/2 The tool files
2/2 HAR import and formatted output

Frequently Asked Questions

How do I turn a HAR file into readable API docs?

Drop the .har file onto the tool, tick the requests you need, and click Generate Output.

Can I hide tokens and passwords before sharing?

Yes. Advanced filters remove keys or wrap them as [...] across all selected requests.

Does my data leave my computer?

No. The tool runs entirely in your browser.

Related

© 2026 Thuyavan Sivarasa. Script code is MIT licensed.