🔒
Basic Auth Generator
Generate HTTP Basic Auth headers
About Basic Auth Generator
HTTP Basic Auth encodes username:password in Base64 and sends it in the Authorization header. Simple but still common for internal APIs, CI/CD tokens, Nginx protected routes, and quick prototypes.
Enter the username and password, get the complete header value ready to paste into curl, Postman, Insomnia, or fetch(). Also generates a curl example with the header pre-populated.
Decode mode goes in reverse — paste a Basic Auth header (with or without the "Basic " prefix) and see the original credentials.
Common Use Cases
- →Generating the Authorization header for curl requests against Basic Auth APIs
- →Setting up Basic Auth in Postman or Insomnia without manual Base64 encoding
- →Decoding Basic Auth headers from API logs when debugging
- →Testing Basic Auth protected routes during development