Q
QuickConvert
Free & Unlimited

HAR to CSV (2026): Export Network Logs to Excel/Sheets + Remove Cookies Safely

Format Guidesβ€’10 min readβ€’March 1, 2026β€’Updated March 5, 2026

Convert HAR (HTTP Archive) files to CSV for easy analysis in Excel or Google Sheets. Learn how to export browser network logs, remove sensitive cookies and headers, analyze API calls, and troubleshoot performance issues with spreadsheet-ready data.

#HAR #CSV #Network Analysis #DevTools #Performance #Excel

HAR (HTTP Archive) files contain detailed network request data from your browser. Converting HAR to CSV allows developers, analysts, and performance engineers to analyze network traffic, debug API issues, and optimize load times using familiar spreadsheet tools.

HAR to CSV conversion showing network log analysis in Excel with performance metrics, cookie removal and API debugging

What is a HAR File?

HAR is a JSON format that records all HTTP requests and responses made by a web browser, including:

  • Request URLs and methods (GET, POST, etc.)
  • Headers (including cookies and auth tokens)
  • Response status codes and timings
  • Content size and MIME types
  • Performance metrics (DNS, SSL, wait time)

Common use cases:

  • Web performance analysis
  • API debugging and testing
  • Security audits
  • Load testing analysis
  • Client support and troubleshooting

How to Generate a HAR File

Chrome/Edge (Chromium)

  1. Open DevTools (F12 or Cmd+Option+I)
  2. Go to Network tab
  3. Reload the page or perform actions
  4. Right-click anywhere in the request list
  5. Select "Save all as HAR with content"

Firefox

  1. Open Developer Tools (F12)
  2. Click Network tab
  3. Load the page
  4. Click the gear icon (βš™οΈ) β†’ "Save All As HAR"

Safari

  1. Enable Develop menu: Preferences β†’ Advanced β†’ "Show Develop menu"
  2. Develop β†’ Show Web Inspector β†’ Network
  3. Click Export icon

Why Convert HAR to CSV?

While HAR files are comprehensive, they're difficult to analyze without specialized tools. CSV conversion makes network data accessible:

Task HAR (JSON) CSV (Excel/Sheets)
Filter slow requests ❌ Complex JSON parsing βœ… Sort by duration column
Find failed requests ❌ Manual searching βœ… Filter status != 200
Calculate total size ❌ Requires scripting βœ… SUM() formula
Share with team ⚠️ Requires dev knowledge βœ… Universal format
Create reports ❌ Complex βœ… Pivot tables, charts

What Data Gets Exported

A typical HAR to CSV conversion includes these columns:

Core Request Data

  • URL: Full request path
  • Method: GET, POST, PUT, DELETE, etc.
  • Status: HTTP response code (200, 404, 500...)
  • Status Text: OK, Not Found, Internal Server Error
  • Type: MIME type (image/png, application/json)

Size & Performance

  • Size: Response body size (bytes)
  • Transfer: Actual transferred (with compression)
  • Time: Total request duration (ms)
  • DNS: DNS lookup time
  • Connect: TCP connection time
  • SSL: TLS handshake time
  • Send: Request send time
  • Wait: Server processing time (TTFB)
  • Receive: Response download time

Headers (Optional)

  • Cookies: Request/response cookies (can be removed)
  • User-Agent: Browser identification
  • Content-Type: Response format
  • Cache-Control: Caching directives

Security: Removing Sensitive Data

⚠️ HAR files often contain sensitive information:

  • πŸ”΄ Session cookies (auth tokens)
  • πŸ”΄ API keys in headers or URLs
  • πŸ”΄ Personal data in POST bodies
  • πŸ”΄ Bearer tokens (OAuth credentials)

Safe Export Options

Our HAR to CSV Converter includes privacy controls:

  1. Remove cookies: Strips Cookie and Set-Cookie headers
  2. Redact Authorization: Removes Authorization headers
  3. Hide POST data: Excludes request/response bodies
  4. Sanitize URLs: Removes query parameters (e.g., ?api_key=...)

Manual sanitization (if needed):

  • Open HAR in text editor
  • Search and replace sensitive values
  • Remove "cookies" and "headers" arrays
  • Then convert to CSV

Analysis Use Cases

1. Find Performance Bottlenecks

Goal: Identify slowest requests

  1. Convert HAR to CSV
  2. Open in Excel/Sheets
  3. Sort by Time column (descending)
  4. Focus on top 10 slowest requests

What to look for:

  • High Wait time: Slow server processing β†’ optimize backend
  • High Receive time: Large response β†’ add compression
  • High DNS time: DNS issues β†’ use DNS prefetch
  • High SSL time: Certificate issues β†’ check SSL config

2. Debug Failed Requests

Goal: Find all 4xx and 5xx errors

  1. Filter Status column
  2. Show only values β‰₯ 400
  3. Group by Status or URL

Common issues:

  • 404: Missing resources (broken links, old cache)
  • 403: CORS issues or auth failures
  • 500/502/503: Server errors β†’ check backend logs

3. Calculate Total Page Weight

In Google Sheets or Excel:

// Total transferred data
=SUM(E:E) / 1024 / 1024  β†’ Result in MB

// Average request time
=AVERAGE(F:F)            β†’ Result in ms

// Count of each resource type
=COUNTIF(D:D, "image/png")
=COUNTIF(D:D, "application/javascript")

4. API Endpoint Analysis

Goal: Analyze API performance

  1. Filter URLs containing /api/
  2. Group by endpoint (use =LEFT(A2, FIND("?", A2)-1) to remove query params)
  3. Calculate average time per endpoint
  4. Create chart showing slowest endpoints

Excel Analysis Tips

Pivot Table for Resource Summary

  1. Select your CSV data
  2. Insert β†’ PivotTable
  3. Rows: Type (MIME type)
  4. Values: Count of URL, Sum of Size, Average of Time

Result: Summary showing count, total size, and average time per resource type (JS, CSS, images, etc.)

Conditional Formatting

  • Highlight slow requests: Format cells β†’ Color scale (red for >2000ms)
  • Highlight errors: Formula: =C2>=400 β†’ Red fill
  • Highlight large files: Formula: =E2>1000000 β†’ Orange fill

Limitations of HAR Files

What HAR Doesn't Capture

  • Client-side rendering: JavaScript execution time
  • User interactions: Clicks, scrolls, form fills
  • Memory usage: RAM consumption
  • Browser caching logic: Why resources were/weren't cached

Complement HAR With:

  • Lighthouse reports: Performance scores
  • Chrome Performance tab: JS profiling
  • Real User Monitoring (RUM): Actual user experience

Advanced: Scripting HAR Analysis

Python Script for Custom Analysis

import json
import csv

# Load HAR file
with open('network.har', 'r') as f:
    har = json.load(f)

# Extract entries
entries = har['log']['entries']

# Convert to CSV
with open('output.csv', 'w', newline='') as f:
    writer = csv.writer(f)
    writer.writerow(['URL', 'Status', 'Time', 'Size'])
    
    for entry in entries:
        url = entry['request']['url']
        status = entry['response']['status']
        time = entry['time']
        size = entry['response']['bodySize']
        writer.writerow([url, status, time, size])

print("Converted successfully!")

JavaScript/Node.js Example

const fs = require('fs');
const har = JSON.parse(fs.readFileSync('network.har', 'utf8'));

const rows = har.log.entries.map(entry => ({
  url: entry.request.url,
  method: entry.request.method,
  status: entry.response.status,
  time: entry.time,
  size: entry.response.bodySize
}));

// Convert to CSV
const csv = [
  'URL,Method,Status,Time,Size',
  ...rows.map(r => `"${r.url}",${r.method},${r.status},${r.time},${r.size}`)
].join('\n');

fs.writeFileSync('output.csv', csv);

FAQ: HAR to CSV Conversion

Can I edit a HAR file before converting?

Yes! HAR is plain JSONβ€”open in any text editor, remove sensitive data, then convert. Always sanitize production HAR files before sharing.

How large can HAR files get?

Complex web apps can generate 10-50MB HAR files (thousands of requests). Large HAR files may require scripting instead of online tools.

Does HAR include response bodies?

Only if you select "Save as HAR with content" in Chrome. Standard HAR includes headers and metadata but not full responses (to keep file size manageable).

Can I merge multiple HAR files?

Yes, using scripts. Extract the entries array from each HAR, combine them, then convert to CSV. Useful for comparing different sessions or tests.

What's the difference between "Size" and "Transfer"?

Size: Uncompressed response size. Transfer: Actual bytes sent (with gzip/brotli compression). Transfer is smaller if compression is enabled.

Related Tools

Conclusion

Converting HAR to CSV unlocks powerful network analysis capabilities using familiar spreadsheet tools. Whether debugging slow page loads, analyzing API performance, or auditing security headers, CSV export makes complex network data accessible to developers, analysts, and stakeholders. Always sanitize HAR files before sharingβ€”remove cookies, auth tokens, and sensitive headers. Use our HAR to CSV Converter for instant, privacy-safe conversion with customizable column selection.

Written by

QuickConvert Team

Published

March 1, 2026

Related Articles