Mist Network
Follow channel
Support
Instant delivery — credentials in seconds Card, SBP & crypto · Email-only signup 190+ countries

Proxy code generator

Fill in your proxy details and copy working code for the tool or language you use. Credentials stay in your browser and are never sent anywhere.

FreeNo sign-up · nothing stored

How to use a proxy in code

Every client needs the same four facts — host, port, username and password — plus the protocol. Libraries differ in where you put them: a proxies dictionary in Python requests, an agent in Node.js, CURLOPT_PROXY in PHP, a Transport in Go, a launch argument in Puppeteer and Playwright. The generator writes that boilerplate for you and tests it against an IP-echo endpoint so you can confirm the exit IP.

Good to know

  • Passwords with special characters are URL-encoded where the library expects a URL.
  • For SOCKS5 the generator uses socks5h in curl so DNS resolves on the proxy side.
  • Browsers started with a proxy flag cannot take credentials in the flag; Puppeteer and Playwright pass them separately.

Related: proxy formats explained, proxies for web scraping and how to test proxy speed.

Frequently asked questions

Are my proxy credentials sent to your server?
No. The code is generated entirely in your browser and nothing is uploaded.
Why does the code call api.ipify.org?
It is a public endpoint that returns the IP address it sees, so you can check the request really leaves through the proxy. Replace it with your target URL.
HTTP or SOCKS5?
HTTP/HTTPS proxies work everywhere; SOCKS5 carries any TCP traffic and resolves DNS remotely. Use whichever your plan supports.

More free tools

Proxy checker

Test up to 20 HTTP or SOCKS5 proxies: status, exit IP, country, ISP and latency.

Mist NetworkMist Network