Basic Auth
Generate .htpasswd, cURL, URL, and Authorization header from ID and password in real time.
.htpasswd
Enter ID and password
cURL
Enter ID and password
URL
Enter ID and password
Authorization header
Enter ID and password
How to use
About this tool
Generates .htpasswd, cURL, URL, and Authorization header from ID and password in real time. Use for Apache .htpasswd or authenticated API requests.
How to use
Enter ID and password; server format (.htpasswd) and client formats (cURL, URL, Authorization header) plus others (wget, fetch, etc.) update in real time. Use each block's copy button to copy the format you need.
Use cases
β’ Apache .htpasswd for Basic auth β’ Authenticated cURL or wget requests β’ Generating Basic auth headers for API testing and development β’ Quick creation of auth-enabled URLs
How it works
Authorization: Basic uses the Base64 encoding of id:password (UTF-8) in the header. .htpasswd hashes the password with bcrypt and outputs a format compatible with Apache 2.4+.
Privacy and data
All processing is done in the browser; ID and password are never sent to a server.
FAQ
- Q: What is HTTP Basic Authentication?
- A: HTTP Basic Authentication is a simple authentication scheme where a username and password are combined as "username:password", Base64-encoded, and sent in the Authorization header as "Basic <encoded>". It is commonly used for Apache .htpasswd protection and API authentication.
- Q: Is Basic Auth secure?
- A: Basic Auth transmits credentials in Base64 encoding, which is easily decoded. It must always be used over HTTPS to prevent credential interception. For production APIs, consider OAuth2 or API keys instead.
- Q: What is .htpasswd?
- A: .htpasswd is a file used by Apache web server to store usernames and hashed passwords for Basic Authentication. This tool generates bcrypt-hashed .htpasswd entries compatible with Apache 2.4 and later.
- Q: Is my password sent to any server?
- A: No. All processing is done entirely in your browser. Your username and password are never sent to any server.
