Log in Sign up
Proxy converter

Proxy converter for ip:port, user:pass@ip:port and URL lines

Your provider sends ip:port:user:pass lines, and your scraper wants socks5://user:pass@host:port. Paste the list as is: the proxy converter works out the format of each line and rewrites it in the one you pick.

A proxy list goes through the converter and comes out in the format you need

Proxy converter input rules

The proxy converter reads ip:port, ip:port:user:pass, user:pass@ip:port, user:pass:ip:port and URLs with a scheme such as http://, https://, socks4://, socks5:// or socks5h://. A host name works in place of an IP, and an IPv6 address goes in square brackets.

You can separate proxies with new lines, spaces, commas or semicolons. The converter checks the host and port of each entry: an IPv4 address needs four numbers from 0 to 255, a host name needs a letter domain ending such as .com, and the port has to fall between 1 and 65535. Entries that fail go to the Broken lines box under the result. The box shows up to 50 of them, so you can find each one in the source list and fix it.

Remove duplicates compares host, port, login and password and ignores the scheme. The converter keeps the first copy, so for http://203.0.113.10:8080 followed by socks5://203.0.113.10:8080 you get the http line and the socks5 one counts as a duplicate. Sort puts IPv4 addresses first in numeric order. Host names and IPv6 addresses follow in character order, and proxies on the same host line up by port.

Proxy formats with examples

  • ip:port, the bare format for proxies that authorize you by IP: 203.0.113.10:8080
  • ip:port:user:pass, the usual provider export: 203.0.113.10:8080:alice:s3cret
  • user:pass@ip:port, with the login in front: alice:s3cret@203.0.113.10:8080
  • user:pass:ip:port, the same order with a colon in place of the @: alice:s3cret:203.0.113.10:8080
  • Proxy URL with a scheme: socks5h://alice:s3cret@203.0.113.10:1080
  • IPv6 in square brackets: [2001:db8::10]:8080, or [2001:db8::10]:8080:alice:s3cret with a login
  • JSON: an array of objects with protocol, host and port, plus username and password for proxies with a login
  • CSV: a header row protocol;host;port;username;password, then one proxy per line split by semicolons

Proxy URL format: scheme, login, host and port

A proxy URL follows the pattern scheme://user:pass@host:port, for example socks5h://alice:s3cret@203.0.113.10:1080. Your program reads the scheme to pick the protocol it speaks to the proxy. The login and password sit before the @ sign with a colon between them, and the host and port follow it. Without a login the URL shrinks to http://203.0.113.10:8080. The converter gives http:// to lines that had no scheme unless you pick another protocol. In URL output it percent-encodes the login and password, so @, :, / and # in a password reach your program as %40, %3A, %2F and %23 and can't break the host part. The converter splits entries at spaces, commas and semicolons. A password with one of those characters gets cut: the first half becomes a proxy with a short password, and the rest lands in Broken lines.

What the protocol menu changes

The Protocol menu rewrites the scheme on URL lines and in the protocol field of JSON and CSV. The proxy server behind the line stays the same. If port 8080 serves HTTP only, a socks5:// label makes your client attempt a SOCKS handshake, and the connection fails. Ask your provider which protocol each port serves before you relabel a list. The menu offers http, https, socks4 and socks5 and has no socks5h entry. To keep socks5h://, leave the menu on 'as in the line, else http': lines that start with socks5h:// keep that scheme in URL, JSON and CSV output. Choosing socks5 in the menu turns them into socks5://.

Output format for your software

Both curl -x and Python requests read the URL format, such as socks5h://alice:s3cret@203.0.113.10:1080. For SOCKS, requests needs the PySocks package, which pip installs with requests[socks]. Playwright takes the server as http://203.0.113.10:8080 and the login and password in separate username and password fields, the same split you get in the JSON output. Scrapebox imports ip:port:user:pass. To turn a curl command into Python, Node.js or PHP code with your proxy, open the cURL converter.

Questions about proxy formats

01Does my list go to your server?

No. The converter runs in your browser and sends the lines nowhere. You can go offline and keep using it.

02How do you tell user:pass:ip:port from ip:port:user:pass?

The converter looks at where the address sits. If the first part looks like an IP or host and the second like a port, it is ip:port:user:pass. If the address comes third and the port fourth, it is user:pass:ip:port.

03Do Advanced.name proxies need a login and password?

Not for unlimited packages: access works by your IP, and the list arrives as ip:port lines. Per-GB plans use a login and password, already placed in the line. If a program wants another format, convert the list here.

04Can I change the protocol for the whole list?

Yes. Pick it in the Protocol menu next to Format, under the source list. The converter writes that scheme into URL lines and into the protocol field of JSON and CSV. Plain formats such as ip:port:user:pass carry no scheme, so the menu has no effect on them. The default, 'as in the line, else http', keeps the scheme from the source and gives http to lines without one.

05How does socks5:// differ from socks5h://?

With socks5h your client passes the site name to the proxy, and the proxy looks up the IP. With socks5 your machine resolves the name through your own DNS server first, so that server sees each domain you open. curl and Python requests both accept the socks5h:// scheme. The converter keeps socks5h:// from your source lines while the Protocol menu stays on its default.

06Which port numbers are valid for a proxy?

Any whole number from 1 to 65535. HTTP proxies often sit on 8080 or 3128 and SOCKS proxies on 1080, though your provider can assign any port in that range. The converter moves lines with port 0, a port above 65535 or letters in the port to Broken lines.

07How do I write an IPv6 proxy address?

Put the address in square brackets and the port after them: [2001:db8::10]:8080. The brackets keep the colons of the address apart from the port separator. The converter reads [addr]:port, [addr]:port:user:pass and URLs such as socks5://alice:s3cret@[2001:db8::10]:1080, and keeps the brackets in its output.

08What happens to @ or : in a proxy password inside a URL?

In URL output the converter percent-encodes the login and password, so p@ss:1 becomes p%40ss%3A1 and your program can tell where the password ends and the host starts. When you paste a scheme://user:pass@host:port line, the converter decodes %40 and %3A back to @ and :. Plain formats such as ip:port:user:pass write the password with no encoding.

Pricing Grab a free hour