File Upload Button CSS Generator

Generate custom CSS file upload styles with live preview.

49.5Kuses
7.5/10(80)
Click to upload or drag and drop
PNG, JPG, GIF up to 10MB
12px
2px
32px
14px

CSS Code

.file-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px;
  background: #1a1a2e;
  border: 2px dashed #333355;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.file-upload:hover {
  border-color: #6366f1;
  background: #6366f111;
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-icon {
  font-size: 32px;
  color: #6366f1;
}

.file-upload-text {
  color: #a0a0b0;
  font-size: 14px;
}

.file-upload-hint {
  color: #a0a0b0;
  font-size: 12px;
  opacity: 0.6;
}

Recommended Products

Ad

Affiliate Disclosure: As an Amazon Associate, ToolBird earns from qualifying purchases. Links above are affiliate links — if you buy through them, we may earn a small commission at no extra cost to you.

Disclaimer: This tool is provided as-is for informational and educational purposes only.

ToolBird Assistant

Find the right tool instantly

Hey! I'm ToolBird Assistant. Tell me what you need and I'll find the right tool for you.