Curlformat
CLI utility to clean up your "Copy as cURL" strings
Install / Use
/learn @rstacruz/CurlformatREADME
npm install -g curlformat
I like to do this in Firefox or Chrome. The output is unreadable though.

So what?
This untangles that. Type f in your terminal, then paste the curl command.
Your command line should look like this:
$ fcurl 'http://site.com/article/new' -H 'Host: site.com' -H 'Connection:
keep-alive' -H 'Accept-Language: en-us' -d "title=Hello&body=Welcome%20to%20" ...
BAM! Now its readable!
http POST "http://site.com/article/new" \
title="Hello" \
body="Welcome to my site!"
That's sweet.
I know. Now pass --extended to make print more stuff that would've been supressed.
http OPTIONS "http://site.com/users" \
Connection:"keep-alive" \
Access-Control-Request-Method:"GET" \
Origin:"http://site.com" \
Accept-Encoding:"gzip, deflate" \
...
Cool beans
Oh and you can also install httpie. The output of curlformat is compatible with httpie.
:copyright:
curlformat © 2014+, Rico Sta. Cruz. Released under the MIT License.<br> Authored and maintained by Rico Sta. Cruz with help from contributors.
ricostacruz.com · GitHub @rstacruz · Twitter @rstacruz
Related Skills
node-connect
352.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
